Condition Coverage

blib/lib/Test2/Plugin/SourceDiag.pm
Criterion Covered Total %
condition 23 35 65.7


and 3 conditions

line !l l&&!r l&&r condition
45 8 0 0 &Scalar::Util::blessed($_) && $_->isa('Test::Builder')
55 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')
123 1 2 7 $thing->can('children') and $subs{($thing->children)[0]->content}
137 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"

or 2 conditions

line l !l condition
41 0 3 $args{'level'} || 1

or 3 conditions

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'}
81 4 2 0 $code or $args
114 4 3 0 $CACHE{$file} ||= 'PPI::Document'->new($file)
123 7 0 3 $thing->can('children') and $subs{($thing->children)[0]->content} or $subs{$thing->content}