Lite/Util/t/mode.t

filter: Statementstmt 100% 15 / 15 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 95.2% 20 / 21 CC 2 SCAR 3.8
CC
2
Cov
94%
END
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Lite/Util/t/hasbits.t ↑ Summary Lite/Util/t/croak.t »
1 # Before `make install' is performed this script should be runnable with
2 # `make test'. After `make install' it should work as `perl test.pl'
3  
4 ######################### We start with some black magic to print on failure.
5 # Change 1..1 below to 1..last_test_to_print .
6 # (It may become useful if the test is moved to ./t subdirectory.)
7  
8 1 ▶BEGIN { $| = 1; print "1..2\n"; }
Subroutine BEGIN: called CC=1 SCAR=0.0
9 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
10  
11 1 ▶use NetAddr::IP::Util qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
12 mode
13 1 );
14  
15 1 $loaded = 1;
16 1 print "ok 1\n";
17 ######################### End of black magic.
18  
19 # Insert your test code below (better if it prints "ok 13"
20 # (correspondingly "not ok 13") depending on the success of chunk 13
21 # of the test code):
22  
23 1 my $mode = mode();
24 1 my $txt = "\tmode $mode";
25 1 print STDERR $txt,"\n";
26 1 print "ok 2\n";
« Lite/Util/t/hasbits.t ↑ Summary Lite/Util/t/croak.t »