Branch Coverage

blib/lib/Test/ClassAPI.pm
Criterion Covered Total %
branch 24 42 57.1


line true false branch
61 0 3 ref $_[0] eq 'GLOB' ? :
65 0 3 unless $Test::ClassAPI::CONFIG = 'Config::Tiny'->read_string()
68 0 3 unless $Test::ClassAPI::SCHEDULE = delete $$Test::ClassAPI::CONFIG{'_'}
75 28 2 unless $$Test::ClassAPI::CONFIG{$tclass}{$test} eq 'implements'
84 0 9 unless ($value =~ /^(?:class|abstract|interface)$/)
87 0 9 unless ($$Test::ClassAPI::CONFIG{$tclass})
98 0 3 if ($Test::ClassAPI::EXECUTED)
101 3 0 unless $Test::ClassAPI::CONFIG
109 0 3 unless ('Test::More'->builder->has_plan)
136 15 3 if ($type eq 'method')
143 1 2 if ($type eq 'isa')
148 0 2 unless ($type eq 'implements')
160 0 2 if grep {$_ eq $test;} @path
161 0 2 if grep {$_ eq $test;} @implements
171 12 0 if ($type eq 'method')
179 6 0 if ($CHECK_UNKNOWN_METHODS)
181 0 6 unless my $methods = 'Class::Inspector'->methods($class, 'public', 'expanded')
186 0 6 if (@$methods)
192 2 4 if ($CHECK_FUNCTION_COLLISIONS)
205 24 0 unless $symbol =~ s/::$//
206 0 0 unless defined *{"${class}::$symbol";}{'CODE'}