Kit/Test/Handle.pm

filter: Statementstmt 78.2% 18 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 10 / 15 Podpod n/a totaltotal 73.6% 28 / 38 CC 1 SCAR 2.9
CC
1
Cov
78%
WRITE
2.0
READ
2.0
EOF
2.0
CRAP 1.3
« Kit/Frame.pm ↑ Summary Kit.pm »
1 package Game::Terminal::Kit::Test::Handle;
2  
3 3 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 our $VERSION = '0.02';
8  
9 21 ▶sub TIEHANDLE {
Subroutine TIEHANDLE: called CC=1 SCAR=0.0
10 21 my ($class) = @_;
11 21 return bless {}, $class;
12 }
13  
14 2 ▶sub PRINT {
Subroutine PRINT: called CC=1 SCAR=0.0
15 2 die "wrote to a handle\n";
16 }
17  
18 1 ▶sub PRINTF {
Subroutine PRINTF: called CC=1 SCAR=0.0
19 1 die "wrote to a handle\n";
20 }
21  
22 0 ▶sub WRITE {
Subroutine WRITE: not called CC=1 SCAR=6.9
23 0 die "wrote to a handle\n";
24 }
25  
26 2 ▶sub READLINE {
Subroutine READLINE: called CC=1 SCAR=0.0
27 2 die "read from a handle\n";
28 }
29  
30 0 ▶sub READ {
Subroutine READ: not called CC=1 SCAR=6.9
31 0 die "read from a handle\n";
32 }
33  
34 1 ▶sub GETC {
Subroutine GETC: called CC=1 SCAR=0.0
35 1 die "read from a handle\n";
36 }
37  
38 0 ▶sub EOF {
Subroutine EOF: not called CC=1 SCAR=6.9
39 0 die "read from a handle\n";
40 }
41  
42 0 ▶sub OPEN {
Subroutine OPEN: not called CC=1 SCAR=6.9
43 0 die "opened a handle\n";
44 }
45  
46 1 ▶sub BINMODE {
Subroutine BINMODE: called CC=1 SCAR=0.0
47 1 return 1;
48 }
49  
50 0 ▶sub FILENO {
Subroutine FILENO: not called CC=1 SCAR=6.9
51 0 return undef;
52 }
53  
54 1 ▶sub CLOSE {
Subroutine CLOSE: called CC=1 SCAR=0.0
55 1 return 1;
56 }
57  
58 3 1;
59  
60 __END__
« Kit/Frame.pm ↑ Summary Kit.pm »