Branch Coverage

lib/App/pherkin.pm
Criterion Covered Total %
branch 78 118 66.1


line true false branch
83 0 1 unless @features
106 1 0 if ($self->match_only)
107 1 0 if $self->match_only
123 0 1 if ($self->tags)
133 0 1 if ($result eq 'failing') { }
0 1 elsif ($self->strict) { }
137 0 0 if ($result eq "pending" or $result eq "undefined")
152 8 4 unless ($harness_module =~ /::/u)
156 0 12 unless eval { do { &use_module($harness_module) } }
159 1 11 if ($harness_args_string) { }
161 0 1 unless eval "%harness_args = ($harness_args_string; 1"
173 10 8 if $config_filename
193 1 70 if -f $_
194 0 70 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 7 if ($config_filename) { }
242 0 9 if $debug
244 8 0 if $config_data_whole
247 0 7 if ($profile_name) { }
248 0 0 if $debug
252 0 7 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 91 21 unless defined $_->[1]
350 36 96 ref $value eq 'ARRAY' ? :
353 0 7 if (&$deref("version"))
362 0 7 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 91 21 unless ref $target->[1] eq "ARRAY"
435 19 2 unless $additions{$key}
438 0 7 if (&$deref("debug_profiles"))
443 0 0 if (ref $value) { }
446 0 0 defined $value ? :
453 0 7 if (my $i18n = &$deref("i18n"))
454 0 0 unless $i18n eq "help"
458 3 4 if &$deref("lib")
459 2 5 if &$deref("blib")
485 0 7 if &$deref("matching")
491 0 7 if &$deref("strict")
569 1 1 unless $scenario