PerlIO/via/EscStatus/ShowNone.pm

filter: Statementstmt 100% 28 / 28 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 1 totaltotal 94.8% 37 / 39 CC 2 SCAR 2.0
CC
2
Cov
97%
WRITE
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« PerlIO/via/EscStatus/ShowAll.pm ↑ Summary
1 # Copyright 2008, 2009, 2010, 2011, 2012, 2017 Kevin Ryde
2  
3 # This file is part of PerlIO-via-EscStatus.
4 #
5 # PerlIO-via-EscStatus is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License as published
7 # by the Free Software Foundation; either version 3, or (at your option) any
8 # later version.
9 #
10 # PerlIO-via-EscStatus is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13 # Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License along
16 # with PerlIO-via-EscStatus. If not, see <http://www.gnu.org/licenses/>.
17  
18 package PerlIO::via::EscStatus::ShowNone;
19 1 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use PerlIO::via::EscStatus;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use PerlIO::via::EscStatus::Parser;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 1 our $VERSION = 12;
26  
27 1 ▶use constant DEBUG => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 2 ▶sub PUSHED {
Subroutine PUSHED: called CC=1 SCAR=0.0
Pod undocumented
30 2 my ($class, $mode, $fh) = @_;
31 2 if (DEBUG) {
32 require Data::Dumper;
33 print STDERR "pushed ", Data::Dumper::Dumper ([$class,$mode,$fh]);
34 }
35 2 return bless { parser => PerlIO::via::EscStatus::Parser->new
36 }, $class;
37 }
38  
39 1 *UTF8 = \&PerlIO::via::EscStatus::UTF8;
40 1 *FLUSH = \&PerlIO::via::EscStatus::FLUSH;
41  
42 6 ▶sub WRITE {
Subroutine WRITE: called CC=2 SCAR=7.0
43 6 my ($self, $buf, $fh) = @_;
44 6 my ($status, $output) = $self->{'parser'}->parse($buf);
45 6 ▶ print $fh $output or return -1;
Branch: 1 branch
BranchTrueFalseTotal
print $fh $output or return -1 6 0 6
46 6 return length($buf);
47 }
48  
49 1 1;
50 __END__
« PerlIO/via/EscStatus/ShowAll.pm ↑ Summary