Branch Coverage

lib/App/pherkin.pm
Criterion Covered Total %
branch 78 120 65.0


line true false branch
81 0 1 unless @features
104 1 0 if ($self->match_only)
105 1 0 if $self->match_only
121 1 0 if ($self->tag_scheme)
132 0 1 if ($result eq 'failing') { }
0 1 elsif ($self->strict) { }
136 0 0 if ($result eq "pending" or $result eq "undefined")
151 8 4 unless ($harness_module =~ /::/)
155 0 12 unless eval { do { &use_module($harness_module) } }
158 1 11 if ($harness_args_string) { }
160 0 1 unless eval "%harness_args = ($harness_args_string; 1"
172 10 8 if $config_filename
192 1 70 if -f $_
193 0 70 if $debug
207 92 78 if (ref $config_data) { }
208 66 26 if (ref $config_data eq 'HASH') { }
26 0 elsif (ref $config_data eq 'ARRAY') { }
240 9 7 if ($config_filename) { }
241 0 9 if $debug
243 8 0 if $config_data_whole
246 0 7 if ($profile_name) { }
247 0 0 if $debug
251 0 7 if $debug
257 1 7 unless defined $profile_name
260 1 7 unless (ref $config_data_whole eq "HASH")
270 1 6 unless ($config_data)
273 1 5 unless ((my $reftype = ref $config_data) eq "HASH")
276 0 5 if $debug
283 6 3 if (my $reftype = ref $value) { }
284 4 2 if ($key ne 'extensions') { }
285 1 3 unless $reftype eq "ARRAY"
290 0 2 unless $reftype eq "HASH" and $key eq "extensions"
301 0 4 if ($debug)
341 84 28 unless defined $_->[1]
349 43 96 ref $value eq 'ARRAY' ? :
352 0 7 if (&$deref("version"))
361 0 7 if &$deref("help")
368 2 0 if $e =~ s/\((.+)\)$//
370 0 2 if $@
398 1 4 if ($key eq 'extensions' or $key eq 'extension') { }
1 3 elsif (ref $target ne 'ARRAY') { }
399 0 1 if ref $value ne "HASH"
409 0 1 if &$deref("debug_profiles")
414 1 0 if (defined $$target) { }
415 0 1 if &$deref("debug_profiles")
420 0 0 if &$deref("debug_profiles")
427 0 3 if &$deref("debug_profiles")
432 84 28 unless ref $target->[1] eq "ARRAY"
434 25 3 unless $additions{$key}
437 0 7 if (&$deref("debug_profiles"))
442 0 0 if (ref $value) { }
445 0 0 defined $value ? :
452 0 7 if (my $i18n = &$deref("i18n"))
453 0 0 unless $i18n eq "help"
457 3 4 if &$deref("lib")
458 2 5 if &$deref("blib")
487 0 7 if &$deref("matching")
493 0 7 if &$deref("strict")
516 5 13 if (defined $1 and $1 eq '~') { }
607 1 1 unless $scenario