blib/lib/ok.pm

filter: Statementstmt 84.6% 11 / 13 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 77.2% 17 / 22 CC 4 SCAR 13.3
CC
4
Cov
74%
import
5.2
BEGIN
1.0
BEGIN
1.0
CRAP 3.8
« blib/lib/Test2/Tools/Target.pm ↑ Summary blib/lib/Test2/Workflow/BlockBase.pm »
1 package ok;
2 17 our $VERSION = '1.302226';
3  
4 17 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 17 ▶use Test::More ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 19 ▶sub import {
Subroutine import: called CC=4 SCAR=16.4
8 19 shift;
9  
10 19 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 19 0 19
11 19 ▶ goto &Test::More::pass if $_[0] eq 'ok';
Branch: 1 branch
BranchTrueFalseTotal
if $_[0] eq "ok" 1 18 19
12 18 goto &Test::More::use_ok;
13 }
14  
15 # No argument list - croak as if we are prototyped like use_ok()
16 0 my (undef, $file, $line) = caller();
17 0 ▶ ($file =~ /^\(eval/) or die "Not enough arguments for 'use ok' at $file line $line\n";
Branch: 1 branch
BranchTrueFalseTotal
$file =~ /^\(eval/ or die "Not enough arguments for 'use ok' at $file line $line\n" 0 0 0
18 }
19  
20  
21 __END__
« blib/lib/Test2/Tools/Target.pm ↑ Summary blib/lib/Test2/Workflow/BlockBase.pm »