| blib/lib/PAGI/Utils.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 25 | 26 | 96.1 |
| line | true | false | branch |
|---|---|---|---|
| 18 | 1 | 5 | unless $type eq "lifespan" |
| 24 | 4 | 1 | if $opts{'startup'} or $opts{'shutdown'} |
| 32 | 1 | 332 | unless defined $thing |
| 35 | 299 | 33 | if ref $thing eq "CODE" |
| 37 | 20 | 13 | if (builtin::blessed($thing)) |
| 38 | 18 | 2 | if $thing->can("to_app") |
| 39 | 1 | 1 | if $thing->can("wrap") |
| 45 | 12 | 1 | unless (ref $thing) |
| 46 | 1 | 11 | unless $thing =~ /\A\w+(?:::\w+)*\z/ |
| 48 | 5 | 6 | unless ($thing->can("to_app")) |
| 50 | 2 | 3 | unless eval "require $thing; 1" |
| 52 | 8 | 1 | if $thing->can("to_app") |
| 53 | 0 | 1 | if $thing->can("wrap") |