Condition Coverage

blib/lib/Mojo/DOM/Role/Restrict.pm
Criterion Covered Total %
condition 29 30 96.6


and 3 conditions

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

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
97 85 108 11 $spec->{$tag} // $spec->{'*'}
107 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->{'*'}{'*'}