Lite/t/bug62521.t

filter: Statementstmt 100% 21 / 21 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 90.6% 29 / 32 CC 2 SCAR 3.2
CC
2
Cov
89%
END
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Lite/Util/t/ipv4_inet.t ↑ Summary Lite/Util/t/add128.t »
1  
2 1 ▶BEGIN { $| = 1; print "1..3\n"; }
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶END {print "not ok 1\n" unless $loaded;}
Subroutine END: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
unless $loaded 0 1 1
4  
5 1 $loaded = 1;
6 1 print "ok 1\n";
7  
8 #use diagnostics;
9 1 ▶use NetAddr::IP::Lite;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 $| = 1;
12  
13 1 my $test = 2;
14  
15 2 ▶sub ok() {
Subroutine ok: called CC=1 SCAR=0.0
16 2 print 'ok ',$test++,"\n";
17 }
18  
19 1 $exp = '0:0:0:0:0:0:7F00:0/104';
20 1 my $ip = new6 NetAddr::IP::Lite('127.0.0.0/8');
21 1 ▶print "exp $exp\ngot ", $ip, "\nnot "
Branch: 1 branch
BranchTrueFalseTotal
unless $ip eq $exp 0 1 1
22 unless $ip eq $exp;
23 1 &ok;
24  
25 1 $ip = new6 NetAddr::IP::Lite('127/8');
26 1 ▶print "exp $exp\ngot ", $ip, "\nnot "
Branch: 1 branch
BranchTrueFalseTotal
unless $ip eq $exp 0 1 1
27 unless $ip eq $exp;
28 1 &ok;
« Lite/Util/t/ipv4_inet.t ↑ Summary Lite/Util/t/add128.t »