Branch Coverage

blib/lib/WWW/AUR/PKGBUILD.pm
Criterion Covered Total %
branch 30 40 75.0


line true false branch
20 6 0 if (@_)
35 36 138 if ($bashtext =~ / \G [(] ([^)]*) [)] /cgx)
44 36 8 if $elem
48 36 8 if $elem_end >= length $arrtext or not $arrtext =~ /\G\s+/g
59 41 97 if ($bashtext =~ /\G'([^']*)'/cg) { }
7 90 elsif ($bashtext =~ /\G"/cg) { }
18 72 elsif ($bashtext =~ /\G([^ \n\t'"]+)/cg) { }
93 10 0 if defined $fields_ref->{$name}
116 0 11 unless $pkg
128 0 1 unless $pkg
155 67 35 unless ($pbfields{$arrkey})
163 0 35 unless ref $val_ref
183 1 5 if ($pbfields{'optdepends'}) { }
185 0 1 unless ref $optdeps
202 10 8 unless @deps
207 0 8 if ($@)
213 6 0 if ($pbfields{'provides'})
227 0 1 unless seek $fh, 0, 0
236 1 5 ref $_[0] eq 'GLOB' ? :
258 0 4 unless defined $val