Branch Coverage

blib/lib/Test/Simpler.pm
Criterion Covered Total %
branch 63 70 90.0


line true false branch
23 6 4 @_ ? :
35 2 8 unless (exists $source{$file})
52 0 10 if $token[0]->content ne "ok"
58 0 10 unless @target
64 10 14 if ($target[0]->isa('PPI::Token::Whitespace')) { }
2 12 elsif ($target[0]->isa('PPI::Structure::List')) { }
2 10 elsif ($target[0]->isa('PPI::Statement::Expression')) { }
86 20 53 if ($target->isa("PPI::Token::Operator") or $target->isa("PPI::Token::Structure"))
90 6 14 if ($content =~ /^(?: , | => | ; )$/ux)
115 8 59 if ($target =~ /$COMPARATOR/u)
139 8 15 if ($next_symbol->isa('PPI::Structure::Subscript')) { }
4 11 elsif ($next_symbol->content eq '->') { }
150 2 2 if ($next_symbol->isa('PPI::Structure::Subscript')) { }
2 0 elsif ($next_symbol->isa('PPI::Token::Word') or $next_symbol->isa('PPI::Token::Symbol')) { }
157 1 1 if ($next_symbol->isa("PPI::Token::Symbol") and $value_for{$next_symbol->content})
170 1 1 unless $next_symbol->isa("PPI::Structure::List")
182 9 2 $symbol->symbol_type eq '$' ? :
187 6 5 if (length $subscript)
207 6 4 if (not $outcome)
210 5 1 if defined $got_code
211 5 1 if defined $comparator
212 5 1 if (defined $comparator) { }
220 5 1 if (@symbol_names)
230 5 1 if (defined $got_code)
233 10 0 defined $_ ? :
234 1 4 if (defined($got_code_value // $expected_code_value) and not @symbol_names)
237 1 4 if (defined $got_code_value and $got_code_value ne $got_code)
240 2 3 if (defined $expected_code_value and $expected_code_value ne $expected_code)
249 40 78 $content =~ /^\s*$/u ? :
4 118 if ($content =~ /^\n+/u) { }
263 0 7 $type eq 'SCALAR' ? :
0 7 $type eq 'HASH' ? :
0 7 $type eq 'ARRAY' ? :
269 13 104 if $element->isa("PPI::Token::Symbol")
275 2 11 if ($seen{$_}++) { }