Branch Coverage

blib/lib/Test/Plan.pm
Criterion Covered Total %
branch 52 60 86.6


line true false branch
50 2 27 @_ ? :
63 21 3 if (@plan % 2)
69 10 11 if ($ref) { }
70 5 5 if ($ref eq 'CODE') { }
4 1 elsif ($ref eq 'ARRAY') { }
84 5 6 $condition ? :
87 11 9 unless ($meets_condition)
88 6 5 @Test::Plan::SkipReasons ? :
112 6 22 ref $_[0] eq 'ARRAY' ? :
117 14 20 if ($@)
121 12 16 if (@reasons) { }
140 2 6 unless defined $version
144 4 2 if $] >= $version
160 1 6 unless need_module($module)
163 2 4 unless defined $version
167 3 1 if eval { do { BEGIN {${^WARNING_BITS} = "\374\377\377\363\377\377\377\377\377\377\377\377\377\377\377?"} $module->VERSION($version) } }
178 3 2 if (my $ext = $Test::Plan::Config{'extensions'})
193 4 5 if defined $Test::Plan::Config{$key}
206 2 3 if (defined &$have) { }
207 1 1 if &$have()
211 2 4 if (exists $Test::Plan::Config{$key})
213 1 1 if config_enabled($key)
218 1 2 $config ? :
235 2 1 unless (exists $Test::Plan::Config{$key} and config_enabled($key))
269 0 9 if (ref $cond eq 'HASH') { }
9 0 elsif ($cond =~ /^(0|1)$/) { }
271 0 0 if ref $value eq 'CODE'
272 0 0 if $value
278 4 5 if $cond == 0
281 0 0 unless need_module($cond)