Util/t/labrea_whoami.t

filter: Statementstmt 100% 14 / 14 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 90.9% 20 / 22 CC 2 SCAR 3.8
CC
2
Cov
89%
END
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Util/t/page_is_current.t ↑ Summary DShield/t/chk_config.t »
1 # Before `make install' is performed this script should be runnable with
2 # `make test'. After `make install' it should work as erl test.pl'
3  
4 ######################### We start with some black magic to print on failure.
5  
6 # Change 1..1 below to 1..last_test_to_print .
7 # (It may become useful if the test is moved to ./t subdirectory.)
8  
9 1 ▶BEGIN { $| = 1; print "1..2\n"; }
Subroutine BEGIN: called CC=1 SCAR=0.0
10 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
11 1 ▶use LaBrea::Tarpit::Util qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
12 labrea_whoami
13 1 );
14 1 $loaded = 1;
15 1 print "ok 1\n";
16  
17 1 my $version = $LaBrea::Tarpit::Util::VERSION;
18  
19 1 ▶print 'not ' unless labrea_whoami =~ /Util $version/;
Branch: 1 branch
BranchTrueFalseTotal
unless labrea_whoami() =~ /Util $version/ 0 1 1
20 1 print "ok 2\n";
« Util/t/page_is_current.t ↑ Summary DShield/t/chk_config.t »