Branch Coverage

blib/lib/Test/Inline/Script.pm
Criterion Covered Total %
branch 39 54 72.2


line true false branch
69 20 0 defined $_[0] ? :
70 0 20 unless my $Sections = _ARRAY(shift())
85 0 20 if $self->_duplicate_names
89 1 19 if ($missing)
91 1 0 if $Test::Inline::Script::NO_MISSING_DEPENDENCIES_WARNING
99 0 20 unless ($unknown or grep {$_->tests;} @$Sections)
104 19 1 if ($check_count)
106 10 34 unless defined $Section->tests
107 22 12 unless $unknown or $check_count > 1
170 0 0 unless $_[0]{'config'}
196 0 18 if $$self{'sorted'}
200 12 6 unless (map {$_->depends;} $self->sections)
205 0 6 unless my $Algorithm = 'Algorithm::Dependency::Ordered'->new('source', $self, 'ignore_orphans', 1)
213 0 6 unless ($schedule)
247 3 19 if exists $$self{'tests'}
253 9 28 unless defined $Section->tests
278 4 18 if exists $$self{'content'}
281 0 18 unless my $sorted = $self->sorted
291 0 18 unless @content
305 0 43 unless my $Section = _INSTANCE(shift(), 'Test::Inline::Section')
309 1 42 if ($Section->example)
322 37 6 unless ($Section->setup)
329 12 31 if ($$Section{'check_count'})
331 4 8 $increase == 1 ? :
364 0 107 unless my $name = shift()
403 9 33 unless $_
404 0 33 if $seen{$_}++