Branch Coverage

blib/lib/HTML/WebMake/WmkFile.pm
Criterion Covered Total %
branch 0 116 0.0


line true false branch
54 0 0 unless (defined $$self{'main'})
56 0 0 if ($$self{'parse_for_cgi'})
86 0 0 unless (m[])
105 0 0 unless (defined $util)
112 0 0 if ($$self{'parse_for_cgi'})
119 0 0 if defined $prevpass and $_ eq $prevpass
123 0 0 unless $_ =~ /^
134 0 0 if (not $$self{'parse_for_cgi'}) { }
146 0 0 if (defined $text)
163 0 0 if (/^
172 0 0 if (/^
194 0 0 if (/^
222 0 0 if (defined $text)
228 0 0 if (/\S/)
231 0 0 if (defined $lasteval)
232 0 0 unless ($_ =~ /^
258 0 0 if $$self{'parse_for_cgi'}
260 0 0 if (defined $$attrs{'name'})
266 0 0 unless defined $k and defined $v
276 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_EDIT_AS_WMKFILE, $$attrs{'file'}, $attrs)
281 0 0 unless (open INC, "< $file")
309 0 0 unless (defined $s[9])
315 0 0 unless (defined $s[9])
321 0 0 unless (open INC, "<$file")
389 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_EDIT_AS_TEXT, $text, $attrs)
392 0 0 unless (defined $name)
397 0 0 if (defined $$attrs{'root'})
410 0 0 if $self->cgi_add_datasource($tag, $attrs)
421 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_EDIT_AS_TEXT, $text, $attrs)
424 0 0 unless (defined $name)
437 0 0 if $self->cgi_add_datasource($tag, $attrs)
449 0 0 if $self->cgi_add_datasource($tag, $attrs)
460 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_EDIT_AS_TEXT, $text, $attrs)
466 0 0 unless (defined $$attrs{'name'})
467 0 0 unless (defined $$attrs{'namefield'})
468 0 0 unless (defined $$attrs{'valuefield'})
483 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_NON_EDITABLE, undef, $attrs)
487 0 0 if not defined $text or $text eq ''
494 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_NON_EDITABLE, undef, $attrs)
498 0 0 if not defined $text or $text eq ''
505 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_EDIT_AS_TEXT, $text, $attrs)
508 0 0 if (defined $$attrs{'src'})
510 0 0 if (open IN, '<' . $fname) { }
527 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_EDIT_AS_TEXT, $text, $attrs)
537 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_EDIT_AS_TEXT, $text, $attrs)
547 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_EDIT_AS_TEXT, $text, $attrs)
559 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_EDIT_AS_TEXT, $text, $attrs)
572 0 0 if $self->cgi_add($tag, $HTML::WebMake::WmkFile::CGI_NON_EDITABLE, undef, $attrs)
580 0 0 if ($#vals >= 0)
582 0 0 if (not $$self{'main'}{'paranoid'}) { }
583 0 0 if (defined $namesubst)
586 0 0 if ($#vals < 0)
597 0 0 if not defined $val or $val eq ''
611 0 0 unless $$self{'parse_for_cgi'}
614 0 0 if (defined $$attrs{'name'})
643 0 0 unless $$self{'parse_for_cgi'}
647 0 0 if ($src =~ s/^([A-Za-z0-9]+)://)
651 0 0 if ($proto eq 'file')