line |
true |
false |
branch |
17
|
4 |
8 |
if (@attrs >= 2 and $attrs[-1] eq '/' and $attrs[-2] eq '/') |
21
|
32 |
46 |
substr($org, 0, 2) eq '' ? : |
|
5 |
73 |
substr($org, -2, 2) eq '/>' ? : |
40
|
0 |
91 |
unless $$self{'name'} |
43
|
58 |
33 |
if (defined $$self{'skipped'} and length $$self{'skipped'}) |
46
|
3 |
88 |
if (defined $$self{'prepend'} and length $$self{'prepend'}) |
49
|
58 |
33 |
if (not $$self{'is_dirty'}) { } |
53
|
19 |
14 |
unless ($$self{'is_removed'}) |
55
|
0 |
19 |
if $$self{'is_end'} |
59
|
27 |
0 |
unless $key eq '/' |
61
|
6 |
13 |
if $$self{'is_empty'} and substr($$self{'name'}, -1, 1) ne '/' |
65
|
2 |
89 |
if (defined $$self{'append'} and length $$self{'append'}) |
95
|
0 |
7 |
unless $$self{'attrs'} |
96
|
0 |
7 |
unless defined $cond and length $cond |
98
|
3 |
4 |
unless ref $cond |
102
|
5 |
6 |
if ($$self{'attrs'}[$offset - 2] =~ /$cond/) |
113
|
0 |
5 |
unless $$self{'attrs'} |
114
|
0 |
5 |
unless defined $cond and length $cond |
116
|
4 |
1 |
unless ref $cond |
120
|
5 |
3 |
if ($$self{'attrs'}[$offset - 2] =~ /$cond/) |
123
|
1 |
4 |
if (ref $code_or_value eq 'CODE') { } |
130
|
0 |
5 |
unless defined $value |
132
|
5 |
0 |
if ($quote) |
154
|
10 |
0 |
if ($open eq $close and $open eq q['] || $open eq '"') |
159
|
5 |
7 |
wantarray ? : |
169
|
1 |
4 |
if ($$self{'attrs'}[$offset - 2] eq $name) |
176
|
1 |
1 |
unless $replaced |
183
|
0 |
6 |
unless $$self{'attrs'} |
188
|
5 |
0 |
if (lc $$self{'attrs'}[$offset - 2] eq $name) |
211
|
0 |
3 |
if (@_) |