Branch Coverage

blib/lib/PAGI/Utils.pm
Criterion Covered Total %
branch 27 28 96.4


line true false branch
19 45 8 builtin::blessed($x) && $x->can('respond') ? :
26 1 5 unless $type eq "lifespan"
32 4 1 if $opts{'startup'} or $opts{'shutdown'}
40 1 336 unless defined $thing
43 303 33 if ref $thing eq "CODE"
45 20 13 if (builtin::blessed($thing))
46 18 2 if $thing->can("to_app")
47 1 1 if $thing->can("wrap")
53 12 1 unless (ref $thing)
54 1 11 unless $thing =~ /\A\w+(?:::\w+)*\z/
56 5 6 unless ($thing->can("to_app"))
58 2 3 unless eval "require $thing; 1"
60 8 1 if $thing->can("to_app")
61 0 1 if $thing->can("wrap")