blib/lib/Test2/Plugin/SourceDiag.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 23 | 35 | 65.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
45 | 8 | 0 | 0 | &Scalar::Util::blessed($_) && $_->isa('Test::Builder') |
56 | 0 | 4 | 3 | $event->can('name') and not $event->name |
4 | 0 | 3 | $event->can('name') and not $event->name and $event->can('set_name') | |
125 | 1 | 2 | 7 | $thing->can('children') and $subs{($thing->children)[0]->content} |
139 | 0 | 0 | 7 | $prefix and $prefix->isa('PPI::Token::Whitespace') |
0 | 0 | 7 | $prefix and $prefix->isa('PPI::Token::Whitespace') and $prefix->content ne "\n" |
line | l | !l | condition |
---|---|---|---|
41 | 0 | 3 | $args{'level'} || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
27 | 7 | 2 | 1 | $params{'show_source'} or $params{'inject_name'} |
28 | 7 | 1 | 2 | $params{'show_source'} or $params{'show_args'} |
83 | 5 | 1 | 0 | $code or $args |
116 | 4 | 3 | 0 | $CACHE{$file} ||= 'PPI::Document'->new($file) |
125 | 7 | 0 | 3 | $thing->can('children') and $subs{($thing->children)[0]->content} or $subs{$thing->content} |