Branch Coverage

blib/lib/HTML/Dojo.pm
Criterion Covered Total %
branch 37 64 57.8


line true false branch
59 0 2 if (exists $args{'edition'})
61 0 0 unless grep {$_ eq $args{'edition'};} $class->editions
75 0 0 if ($_ eq ':no_files') { }
83 3 0 if ($require == 1)
166 2 1 unless exists $$opt{'directories'}
167 2 1 unless exists $$opt{'files'}
169 0 3 if @_ > 2
172 0 3 unless grep {$_ eq $edition;} $self->editions
176 2 1 if $$opt{'files'}
179 2 1 if $$opt{'files'}
191 1 2 unless (defined $SRC_DATA)
199 0 3654 unless length $_
201 0 3654 unless /__CPAN_(DIR|FILE)__ ([^\r\n]+)/
203 89 3565 if ($1 eq 'DIR' and $$opt{'directories'})
207 2258 1396 if ($1 eq 'FILE' and $$opt{'files'})
235 0 3 if @_ > 3
238 0 3 unless grep {$_ eq $edition;} $self->editions
240 0 3 if (grep {$filename eq $_;} $self->_common_files) { }
2 1 elsif (grep {$filename eq $_;} $self->_editions_files) { }
254 0 0 unless (defined $COMMON_DATA)
263 0 0 unless length $_
265 0 0 unless s/__CPAN_COMMON__ ([^\r\n]+)\r?\n//
268 0 0 unless $1 eq $filename
280 1 1 unless (defined $EDITIONS_DATA)
289 0 10 unless length $_
291 0 10 unless s/__CPAN_EDITION__ (\w+) ([^\r\n]+)\r?\n//
294 8 2 unless $1 eq $edition
295 0 2 unless $2 eq $filename
307 1 0 unless (defined $SRC_DATA)
315 0 42 unless length $_
317 0 42 unless s/__CPAN_(DIR|FILE)__ ([^\r\n]+)\r?\n//
319 41 1 unless $1 eq 'FILE' and $2 eq $filename