Branch Coverage

blib/lib/HTML/Display/Common.pm
Criterion Covered Total %
branch 21 24 87.5


line true false branch
131 2 17 if (scalar @_ == 1) { }
137 0 20 if ($args{'file'})
141 0 0 unless open FILE, '<', $filename
146 14 6 if not exists $args{'base'} and exists $args{'location'}
150 15 4 if (exists $args{'base'}) { }
162 11 61 if ($token->is_start_tag('head')) { }
4 57 elsif ($token->is_start_tag('base')) { }
173 3 72 if ($token->is_start_tag('html') and not $has_head) { }
7 65 elsif ($token->is_start_tag('head') and not $has_base) { }
4 61 elsif ($token->is_start_tag('base')) { }
177 1 6 if ($token->as_is =~ m[^<\s*head\s*/>$]i) { }
184 3 1 if ($token->return_attr->{'href'}) { }