Lite/t/over-qq.t

filter: Statementstmt 84.3% 27 / 32 Branchbran 50.0% 5 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 77.2% 34 / 44 CC 1 SCAR 0.0
CC
1
Cov
76%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Lite/t/v4-numeric.t ↑ Summary Lite/t/over_equal.t »
1 1 ▶use NetAddr::IP::Lite;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 1 my @addr = ('10.0.0.0/8', '192.168.0.0/16', '127.0.0.1/32');
4  
5 1 $| = 1;
6  
7 1 print "1..", 5 * scalar @addr, "\n";
8  
9 1 my $count = 1;
10  
11 1 for my $a (@addr) {
12 3 my $ip = new NetAddr::IP::Lite $a;
13 3 ▶ if ($a eq "$ip") {
Branch: 1 branch
BranchTrueFalseTotal
if ($a eq "$ip") { } 3 0 3
14 3 print "ok $count\n";
15 }
16 else {
17 0 print "not ok $count\n";
18 }
19 3 ++ $count;
20  
21 3 ▶ if ($a eq $ip) {
Branch: 1 branch
BranchTrueFalseTotal
if ($a eq $ip) { } 3 0 3
22 3 print "ok $count\n";
23 }
24 else {
25 0 print "not ok $count\n";
26 }
27 3 ++ $count;
28  
29 3 ▶ if ($ip eq $a) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ip eq $a) { } 3 0 3
30 3 print "ok $count\n";
31 }
32 else {
33 0 print "not ok $count\n";
34 }
35 3 ++ $count;
36  
37 3 ▶ if ($ip eq $ip) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ip eq $ip) { } 3 0 3
38 3 print "ok $count\n";
39 }
40 else {
41 0 print "not ok $count\n";
42 }
43 3 ++ $count;
44  
45 3 ▶ if ($ip == $ip) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ip == $ip) { } 3 0 3
46 3 print "ok $count\n";
47 }
48 else {
49 0 print "not ok $count\n";
50 }
51 3 ++ $count;
52  
53 }
« Lite/t/v4-numeric.t ↑ Summary Lite/t/over_equal.t »