Branch Coverage

lib/App/pherkin.pm
Criterion Covered Total %
branch 80 118 67.8


line true false branch
83 0 5 unless @features
106 1 4 if ($self->match_only)
107 1 0 if $self->match_only
123 4 1 if ($self->tags)
133 0 5 if ($result eq 'failing') { }
0 5 elsif ($self->strict) { }
137 0 0 if ($result eq "pending" or $result eq "undefined")
152 12 4 unless ($harness_module =~ /::/u)
156 0 16 unless eval { do { &use_module($harness_module) } }
159 1 15 if ($harness_args_string) { }
161 0 1 unless eval "%harness_args = ($harness_args_string; 1"
173 10 12 if $config_filename
193 1 110 if -f $_
194 0 110 if $debug
208 92 78 if (ref $config_data) { }
209 66 26 if (ref $config_data eq 'HASH') { }
26 0 elsif (ref $config_data eq 'ARRAY') { }
241 9 11 if ($config_filename) { }
242 0 9 if $debug
244 8 0 if $config_data_whole
247 0 11 if ($profile_name) { }
248 0 0 if $debug
252 0 11 if $debug
258 1 7 unless defined $profile_name
261 1 7 unless (ref $config_data_whole eq "HASH")
271 1 6 unless ($config_data)
274 1 5 unless ((my $reftype = ref $config_data) eq "HASH")
277 0 5 if $debug
284 6 3 if (my $reftype = ref $value) { }
285 4 2 if ($key ne 'extensions') { }
286 1 3 unless $reftype eq "ARRAY"
291 0 2 unless $reftype eq "HASH" and $key eq "extensions"
302 0 4 if ($debug)
342 143 33 unless defined $_->[1]
350 52 159 ref $value eq 'ARRAY' ? :
353 0 11 if (&$deref("version"))
362 0 11 if &$deref("help")
369 2 0 if $e =~ s/\((.+)\)$//u
371 0 2 if $@
399 1 4 if ($key eq 'extensions' or $key eq 'extension') { }
2 2 elsif (ref $target ne 'ARRAY') { }
400 0 1 if ref $value ne "HASH"
410 0 1 if &$deref("debug_profiles")
415 1 1 if (defined $$target) { }
416 0 1 if &$deref("debug_profiles")
421 0 1 if &$deref("debug_profiles")
428 0 2 if &$deref("debug_profiles")
433 143 33 unless ref $target->[1] eq "ARRAY"
435 31 2 unless $additions{$key}
438 0 11 if (&$deref("debug_profiles"))
443 0 0 if (ref $value) { }
446 0 0 defined $value ? :
453 0 11 if (my $i18n = &$deref("i18n"))
454 0 0 unless $i18n eq "help"
458 3 8 if &$deref("lib")
459 2 9 if &$deref("blib")
487 0 11 if &$deref("matching")
493 0 11 if &$deref("strict")
571 1 1 unless $scenario