Branch Coverage

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


line true false branch
63 20 0 defined $_[0] ? :
64 0 20 unless my $Sections = &_ARRAY(shift())
79 0 20 if $self->_duplicate_names
83 1 19 if ($missing)
85 1 0 if $Test::Inline::Script::NO_MISSING_DEPENDENCIES_WARNING
93 0 20 unless ($unknown or grep {$_->tests;} @$Sections)
98 19 1 if ($check_count)
100 10 34 unless defined $Section->tests
101 22 12 unless $unknown or $check_count > 1
164 0 0 unless $_[0]{'config'}
190 0 18 if $self->{'sorted'}
194 12 6 unless (map {$_->depends;} $self->sections)
199 0 6 unless my $Algorithm = 'Algorithm::Dependency::Ordered'->new('source', $self, 'ignore_orphans', 1)
207 0 6 unless ($schedule)
241 3 19 if exists $self->{'tests'}
247 9 28 unless defined $Section->tests
272 4 18 if exists $self->{'content'}
275 0 18 unless my $sorted = $self->sorted
285 0 18 unless @content
299 0 43 unless my $Section = &_INSTANCE(shift(), 'Test::Inline::Section')
303 1 42 if ($Section->example)
316 37 6 unless ($Section->setup)
323 12 31 if ($Section->{'check_count'})
325 4 8 $increase == 1 ? :
358 0 107 unless my $name = shift()
397 9 33 unless $_
398 0 33 if $seen{$_}++