Lite/t/v6-cnew-uri.t

filter: Statementstmt 93.7% 15 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 90.0% 18 / 20 CC 1 SCAR 0.0
CC
1
Cov
89%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Lite/t/v4-cnew.t ↑ Summary Lite/t/v6-cnew.t »
1 1 ▶use NetAddr::IP::Lite;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 1 my @subnets = (
4 [ '[dead:beef:1234::/16]', 'DEAD:BEEF:1234:0:0:0:0:0/16' ],
5 [ '[::1234:BEEF:DEAD/24]', '0:0:0:0:0:1234:BEEF:DEAD/24' ],
6 );
7 1 $| = 1;
8  
9 1 print '1..', (scalar @subnets) , "\n";
10  
11 1 my $count = 1;
12  
13 1 for my $n (@subnets) {
14 2 my $ip = new NetAddr::IP::Lite $n->[0];
15 2 ▶ if ($ip eq $n->[1]) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ip eq $n->[1]) { } 2 0 2
16 2 print "ok $count\n";
17 }
18 else {
19 0 print $ip, "\nnot ok $count\n";
20 }
21  
22 2 ++ $count;
23 }
« Lite/t/v4-cnew.t ↑ Summary Lite/t/v6-cnew.t »