Branch Coverage

blib/lib/XML/XPath/Helper/String.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
20 1 14 unless @_ == 1
23 10 4 if (ref $arg) { }
24 1 9 unless ref $arg eq "ARRAY"
27 1 3 unless defined $arg
32 10 11 if (index($string, q[']) >= 0) { }
35 16 16 substr($substr, 0, 1) eq q['] ? :
43 4 9 $arg_scalar ? :
48 0 3 unless @_ > 0
50 0 3 unless ref $array eq "ARRAY"
51 2 1 if (defined $name) { }
52 0 2 if ref $name
62 0 3 unless @_ > 0
64 0 3 unless ref $array eq "ARRAY"
65 2 1 if (defined $name) { }
66 0 2 if ref $name