Branch Coverage

web/cgi-bin/yatt.lib/YATT/Test.pm
Criterion Covered Total %
branch 50 70 71.4


line true false branch
74 2 0 if ($sub) { }
85 0 0 @_ > 1 ? :
86 0 0 @_ > 1 ? :
93 130 0 if ($sub) { }
0 0 elsif ($error) { }
98 130 0 if defined $out
104 0 130 if ($@)
143 1 0 unless $self->toplevel
173 1 0 if (@_ == 1 and -d $_[0])
178 0 1 unless @_
199 0 184 if ($rec->{'global'})
206 129 13 $prev && $prev->{'cf_FILE'} && $prev->{'cf_FILE'} =~ /%d/ ? :
208 159 25 if ($test->{'cf_IN'})
220 130 54 if ($test->{'cf_OUT'})
222 23 107 if (not $test->{'cf_TITLE'} and $prev)
240 54 130 unless $test->{'cf_OUT'}
254 159 25 if ($test->{'cf_IN'})
255 0 159 if -e $test->{'realfile'}
259 162 22 if $global->xhf_is_runnable($test)
264 1 12 if (-d "$DIR/lib") { }
274 2 11 if (-r (my $fn = "$DIR/doc/.htyattroot"))
288 162 0 if $test->{'cf_WIDGET'}
289 90 0 ref $_ ? :
290 90 72 if $test->{'cf_PARAM'}
305 0 162 unless (defined $test->{'cf_TITLE'})
312 130 32 if ($test->{'cf_OUT'}) { }
32 0 elsif ($test->{'cf_ERROR'}) { }
314 1 129 if $test->{'cf_SKIP'}
316 0 129 if ($toplevel and my $sub = $toplevel->can('set_random_list'))
321 4 125 if $test->{'cf_BREAK'}
326 1 31 if $test->{'cf_SKIP'}
327 1 30 if $test->{'cf_BREAK'}
335 130 54 if ($test->{'cf_OUT'}) { }
32 22 elsif ($test->{'cf_ERROR'}) { }
349 2 2 if $diff <= 0