Branch Coverage

blib/lib/Test/Simpler.pm
Criterion Covered Total %
branch 64 70 91.4


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