Util/Tie.pm

filter: Statementstmt 52.0% 13 / 25 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 36.3% 4 / 11 Podpod n/a totaltotal 50.0% 19 / 38 SCAR 8.5
CC
2
Cov
56%
WRITE
2.0
PRINT
2.0
PRINTF
2.0
CRAP 2.4
« Prototype.pm ↑ Summary Util/Overloading.pm »
1 package IO::Handle::Util::Tie;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub TIEHANDLE {
7 10 ▶ my ( $class, $fh ) = @_;
Subroutine TIEHANDLE: called CC=1 SCAR=0.0
8 10 bless \$fh, $class;
9 }
10  
11 sub WRITE {
12 0 ▶ my $self = shift;
Subroutine WRITE: not called CC=1 SCAR=6.9
13 0 $$self->write(@_);
14 }
15  
16 sub PRINT {
17 0 ▶ my $self = shift;
Subroutine PRINT: not called CC=1 SCAR=6.9
18 0 $$self->print(@_);
19 }
20  
21 sub PRINTF {
22 0 ▶ my $self = shift;
Subroutine PRINTF: not called CC=1 SCAR=6.9
23 0 $$self->printf(@_);
24 }
25  
26 sub READ {
27 0 ▶ my $self = shift;
Subroutine READ: not called CC=1 SCAR=6.9
28 0 $$self->read(@_);
29 }
30  
31 sub READLINE {
32 10 ▶ my $self = shift;
Subroutine READLINE: called CC=2 SCAR=6.9
33  
34 10 ▶ if ( wantarray ) {
Branch: 1 branch
BranchTrueFalseTotal
if (wantarray) { } 5 5 10
35 5 $$self->getlines;
36 } else {
37 5 $$self->getline;
38 }
39 }
40  
41 sub GETC {
42 0 ▶ my $self = shift;
Subroutine GETC: not called CC=1 SCAR=6.9
43 0 $$self->getc(@_);
44 }
45  
46 sub CLOSE {
47 0 ▶ my $self = shift;
Subroutine CLOSE: not called CC=1 SCAR=6.9
48 0 $$self->close(@_);
49 }
50  
51 ▶sub UNTIE { }
Subroutine UNTIE: not called CC=1 SCAR=0.0
52  
53 1 __PACKAGE__
54  
55 __END__
« Prototype.pm ↑ Summary Util/Overloading.pm »