Branch Coverage

lib/Test/Classy/Base.pm
Criterion Covered Total %
branch 65 72 90.2


line true false branch
19 26 28 if ($class ne __PACKAGE__)
20 24 2 unless grep {$_ eq "base";} @flags
26 0 30 if $INC{'Test/Stream/Toolset.pm'}
32 30 810 if $export =~ /^\W/
36 3 1 unless $_ eq "ignore"
2 28 if (grep {$_ eq "ignore_me" unless $_ eq "ignore";} @flags)
40 28 2 if ($class eq __PACKAGE__)
52 31 55 if ($attr eq 'Test') { }
31 24 elsif (my($dummy, $plan) = $attr =~ /^Tests?\((['"]?)(\d+|no_plan)\1\)$/) { }
19 5 elsif (my($type, $dummy2, $reason) = $attr =~ /^(Skip|TODO)(?:\((['"]?)(.+)\)\2)?$/) { }
65 4 62 unless $stash{'plan'}
67 3 59 if ($stash{'plan'} eq "no_plan")
68 1 2 unless Test::Classy::Util::_planned()
92 1 2 if exists $tests->{$name}{$moniker}
102 2 23 if (${"${class}::_ignore_me";})
129 2 23 if $class->_should_be_ignored
140 0 44 if $sym{$name} =~ /^(?:initialize|finalize)$/
142 6 38 if (my $reason = $class->_should_skip_this_class)
159 7 31 if (exists $test->{'TODO'}) { }
5 26 elsif (exists $test->{'Skip'}) { }
162 4 3 defined $test->{'TODO'} ? :
164 1 6 if (exists $test->{'Skip'}) { }
182 3 2 defined $test->{'Skip'} ? :
197 3 29 if ($@)
200 3 0 if ($rest)
201 3 0 if (exists $test->{'TODO'}) { }
204 3 0 defined $test->{'TODO'} ? :
217 3 29 if (my $reason = $class->_is_skipped)
220 2 1 if ($rest)
277 1 62 if $ENCODE and &Encode::is_utf8($message)
285 1 62 unless defined $message
287 57 6 if (my $name = $class->test_name)
288 52 5 unless $message =~ /\b$name\b/
297 0 63 unless defined $message
299 63 0 if (my($name) = $class =~ /(\w+)$/)
300 59 4 unless $message =~ /\b$name\b/