Branch Coverage

blib/lib/Yaadgom.pm
Criterion Covered Total %
branch 21 40 52.5


line true false branch
37 3 3 $obj eq 'req' ? :
39 0 9 if $@
45 0 3 exists $opt{'file'} ? :
47 0 3 if ($file) { }
62 0 3 if $results[-1]
65 0 3 defined $opt{'weight'} && $opt{'weight'} =~ /^[0-9]+$/ ? :
100 3 3 if ($header =~ m[application/json] and $body)
107 0 6 if $results[-1]
120 0 3 $opt{'extra'}{'is_fail'} ? :
125 0 3 if $results[-1]
131 3 0 defined $file_name ? :
0 3 exists $opt{'extra'}{'name'} ? :
140 0 3 if $results[-1]
149 0 3 if (exists $opt{'extra'}{'fields'})
154 0 0 if (ref $maybealist eq 'ARRAY') { }
168 0 3 if $results[-1]
178 0 1 unless -d $dir
190 0 1 unless open my $fh, '>>:utf8', $file
226 0 3 if $results[-1]
249 0 3 if (ref $self->on_destroy eq 'CODE')