Condition Coverage

blib/lib/HTML/WebMake/Main.pm
Criterion Covered Total %
condition 2 115 1.7


and 3 conditions

line !l l&&!r l&&r condition
426 0 0 0 defined $opts and $$opts{'parse_for_cgi'}
760 0 0 0 defined $$attrs{'all'} and $$self{'util'}->parse_boolean($$attrs{'all'})
1178 0 0 0 !defined($str) || $str eq '' and $key ne 'TOP/'
1236 0 0 0 $self->check_content_dep($cont->get_filename, $$self{'current_subst'}{'filename'}, undef) and not $$self{'force_output'}
1488 0 0 0 $$self{'have_image_size_module'} and defined $attrs
1573 0 1 8 defined $reldir and $reldir ne ''
1789 0 0 0 -f $to and not rename($to, $bak)
1923 0 0 0 not $$self{'making_to_string'} and $$self{'force_output'} == 0
0 0 0 not $$self{'making_to_string'} and $$self{'force_output'} == 0 and -f $outfname
1926 0 0 0 -s $outfname == length $txt and open IN, "<$outfname"
0 0 0 -s $outfname == length $txt and open IN, "<$outfname" and $curtxt = join('', )
0 0 0 -s $outfname == length $txt and open IN, "<$outfname" and $curtxt = join('', ) and close IN
0 0 0 -s $outfname == length $txt and open IN, "<$outfname" and $curtxt = join('', ) and close IN and $curtxt eq $txt
2037 0 0 0 defined $obj and defined($url = $obj->get_url)
2042 0 0 0 $give_up_if_still_deferred and $url =~ /^\{!!WMDEFER_content_url:/l
2065 0 0 0 $#deps >= 0 and -f _
2068 0 0 0 defined $dep and $dep ne ''
2076 0 0 0 $foundadep and not $needrebuild
2105 0 0 0 $HTML::WebMake::Main::DEBUG > 1 and $dep ne $HTML::WebMake::Main::SUBST_DEP_IGNORE
2115 0 0 0 defined $outmod and $nowmod > $outmod

or 2 conditions

line l !l condition
153 0 0 $$self{'paranoid'} ||= 0
154 0 0 $$self{'debug'} ||= 0
156 0 0 $$self{'base_href'} ||= ''
157 0 0 $$self{'base_dir'} ||= ''
158 0 0 $$self{'risky_fast_rebuild'} ||= 0
159 0 0 $$self{'force_output'} ||= 0
160 0 0 $$self{'force_cache_rebuild'} ||= 0
266 0 0 $home ||= '/'
304 0 0 $fname ||= '~/.webmake/%F/cache.db'
330 0 0 $fname ||= '~/.webmake'
347 0 0 $fname ||= '~/.webmake/%F'
1542 0 0 $attrtext ||= ''
1543 0 0 $sizestr ||= ''
2100 0 0 $prevmod ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
150 0 0 0 ref $class || $class
690 0 0 0 defined $$self{'contents'}{$name} or defined $$self{'metadatas'}{$name}
815 0 0 0 $$attrs{'breadcrumb_top_name'} ||= $$attrs{'level'}
818 0 0 0 $$attrs{'breadcrumb_tail_name'} ||= $$attrs{'level'}
890 0 0 0 $$str =~ /\$\{.*?\}/l or $$str =~ /\$\[.*?\]/l
0 0 0 $$str =~ /\$\{.*?\}/l or $$str =~ /\$\[.*?\]/l or $$str =~ /\$\(.*?\)/l
0 0 0 $$str =~ /\$\{.*?\}/l or $$str =~ /\$\[.*?\]/l or $$str =~ /\$\(.*?\)/l or $$str =~ /<\{.*?\>\}/l
1178 0 0 0 !defined($str) || $str eq ''
1187 0 0 0 $str =~ m[^/]l or $str =~ /^[-_a-zA-Z0-9]:/l