blib/lib/PerlIO/via/Pipe.pm

filter: Statementstmt 100% 27 / 27 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 3 / 3 totaltotal 97.5% 40 / 41 CC 3 SCAR 3.7
CC
3
Cov
97%
PUSHED
2.0
FILL
2.0
BEGIN
1.0
CRAP 1.4
↑ Summary
1 2 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package PerlIO::via::Pipe;
6 2 our $VERSION = '1.100860';
7 # ABSTRACT: PerlIO layer to filter input through a Text::Pipe
8 2 ▶use Exporter qw(import);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 our %EXPORT_TAGS = (util => [qw(set_io_pipe)],);
10 2 our @EXPORT_OK = @{ $EXPORT_TAGS{all} = [ map { @$_ } values %EXPORT_TAGS ] };
11  
12 1 ▶sub set_io_pipe ($) {
Subroutine set_io_pipe: called CC=1 SCAR=0.0
Pod documented
13 1 our $pipe = shift;
14 }
15  
16 1 ▶sub PUSHED {
Subroutine PUSHED: called CC=2 SCAR=7.0
Pod documented
17 1 my ($class, $mode) = @_;
18 1 ▶ return -1 if $mode ne 'r';
Branch: 1 branch
BranchTrueFalseTotal
if $mode ne "r" 0 1 1
19 1 my $buf = '';
20 1 bless \$buf, $class;
21 }
22  
23 28 ▶sub FILL {
Subroutine FILL: called CC=2 SCAR=6.9
Pod documented
24 28 my ($self, $fh) = @_;
25 28 my $line = <$fh>;
26 28 ▶ return unless defined $line;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $line 1 27 28
27 27 our $pipe;
28 27 $pipe->filter($line);
29 }
30 2 1;
31  
32  
33 __END__
↑ Summary