line |
true |
false |
branch |
217
|
2 |
55 |
unless (defined $expected) |
227
|
7 |
48 |
unless ref $options eq 'HASH' |
228
|
42 |
13 |
unless defined $$options{'description'} |
229
|
54 |
1 |
unless (is_xml_element $expected) |
232
|
2 |
52 |
if ($@) |
238
|
51 |
2 |
unless (is_xml_element $got) |
240
|
4 |
47 |
if ($@) |
250
|
23 |
26 |
if (_is_xml($got, $expected, $options, '', {})) |
255
|
3 |
23 |
if ($$options{'show_xml'}) |
257
|
1 |
2 |
if (is_xml_element $expected_original) { } |
263
|
1 |
2 |
if (is_xml_element $got_original) { } |
298
|
0 |
75 |
unless ($expected) |
314
|
0 |
75 |
if $$options{'verbose'} |
316
|
4 |
71 |
if ($got_name ne $expected_name) |
321
|
0 |
71 |
if $$options{'verbose'} |
336
|
0 |
6 |
if $$options{'verbose'} |
338
|
1 |
5 |
unless (exists $got_attr{$attr}) |
343
|
0 |
5 |
if $$options{'verbose'} |
348
|
1 |
4 |
if ($expected_string ne $got_string) |
357
|
0 |
4 |
if $$options{'verbose'} |
359
|
2 |
67 |
if (keys %got_attr) |
361
|
1 |
1 |
keys %got_attr > 1 ? : |
365
|
0 |
67 |
if $$options{'verbose'} |
391
|
3 |
76 |
if ($$options{'ignore_whitespace'} or $$options{'ignore_leading_whitespace'} or $$options{'ignore_surrounding_whitespace'}) |
396
|
3 |
76 |
if ($$options{'ignore_whitespace'} or $$options{'ignore_trailing_whitespace'} or $$options{'ignore_surrounding_whitespace'}) |
401
|
8 |
78 |
if ($$options{'ignore_whitespace'} or $$options{'ignore_different_whitespace'}) |
406
|
18 |
68 |
if ($comp_got_text ne $comp_expected_text) |
415
|
13 |
5 |
if ($i == 0) { } |
|
1 |
4 |
elsif ($i == @{$got_content;} - 1 and $i == @{$expected_content;} - 1) { } |
416
|
10 |
3 |
if (@{$got_content;} == 1 and @{$expected_content;} == 1) { } |
434
|
0 |
18 |
if ($$options{'verbose'}) |
446
|
42 |
26 |
if $i >= @{$got_content;} |
453
|
7 |
19 |
unless _is_xml($$got_content[$i], $$expected_content[$i], $options, $path, $child_index) |
463
|
0 |
42 |
if (@{$expected_content;} > @{$got_content;}) |
512
|
7 |
4 |
unless ref $options eq 'HASH' |
513
|
9 |
2 |
unless defined $$options{'description'} |
519
|
3 |
6 |
is_xml($got, $expected, $options) ? : |
524
|
2 |
9 |
unless (defined $result and length $result) |
526
|
6 |
3 |
if ($result) |
533
|
2 |
1 |
if ($$options{'show_xml'}) |
535
|
1 |
1 |
if (is_xml_element $got) { } |
554
|
3 |
1 |
unless ref $options eq 'HASH' |
555
|
2 |
2 |
unless defined $$options{'description'} |
558
|
3 |
1 |
if (eval {
do {
xml10_read_document $xml_string;
1
}
}) |
579
|
3 |
1 |
unless ref $options eq 'HASH' |
580
|
2 |
2 |
unless defined $$options{'description'} |
583
|
3 |
1 |
unless (eval {
do {
xml10_read_document $xml_string;
1
}
}) |