Condition Coverage

blib/lib/Mojo/DOM/Role/Restrict.pm
Criterion Covered Total %
condition 29 36 80.5


and 3 conditions

line !l l&&!r l&&r condition
21 20 45 24 $_[1]{$_} and not ref $_[1]{$_}
65 24 0 $_[1]{$_} and not ref $_[1]{$_} and do { $_[1]{$_} = {'*', 1} }
32 0 0 0 $_[1] and not $_[0]->diff_module_name =~ /$_[1]/u
58 0 0 0 @parts and not $parts[0]
146 30 144 30 ref $valid && $valid->{'validate_tag'}
155 18 15 57 $valid && ($valid =~ /1/u || $value =~ /$valid/u)

or 2 conditions

line l !l condition
168 10 2 _valid_attribute($spec, $tag, $_, $attrs->{$_}) or return 0
170 30 10 _valid($_, $spec) or return 0
173 3 6 _valid($_, $spec) or return 0

or 3 conditions

line l !l&&r !l&&!r condition
144 85 108 11 $spec->{$tag} // $spec->{'*'}
154 7 4 143 $spec->{$tag}{$attr} // $spec->{$tag}{'*'}
4 72 71 ($spec->{$tag}{$attr} // $spec->{$tag}{'*'}) // $spec->{'*'}{$attr}
75 56 12 (($spec->{$tag}{$attr} // $spec->{$tag}{'*'}) // $spec->{'*'}{$attr}) // $spec->{'*'}{'*'}