File: pipeline.t

package info (click to toggle)
liblocal-lib-perl 2.000029-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 344 kB
  • sloc: perl: 1,141; makefile: 13
file content (15 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;
use Test::More tests => 1;

use local::lib ();

{
  package Foo;
  sub new { bless {}, $_[0] }
  sub foo { -$_[1] }
  sub bar { $_[1]+2 }
  sub baz { $_[1]+3 }
}

is +Foo->new->${local::lib::pipeline qw(foo bar baz)}(10), -15;