Branch Coverage

blib/lib/App/DPath.pm
Criterion Covered Total %
branch 67 74 90.5


line true false branch
23 0 41 if ($file eq '-') { }
28 1 40 unless open my $FH, "<", $file
34 3 37 unless (defined $filecontent and $filecontent =~ /[^\s\t\r\n]/ms)
38 8 29 if ($intype eq 'yaml') { }
2 27 elsif ($intype eq 'json') { }
3 24 elsif ($intype eq 'xml') { }
6 18 elsif ($intype eq 'ini') { }
9 9 elsif ($intype eq 'cfggeneral') { }
1 8 elsif ($intype eq 'dumper') { }
2 6 elsif ($intype eq 'tap') { }
5 1 elsif ($intype eq 'taparchive') { }
40 0 8 if ($yamlmod) { }
75 2 0 $TAP::Parser::VERSION > 3.22 ? :
80 5 0 $TAP::Parser::VERSION > 3.22 ? :
108 1 10 if defined builtin::reftype($_)
123 3 6 if defined builtin::reftype($v)
135 1 14 unless defined $result
137 4 10 if ($opt->{'fb'})
140 2 12 if (not defined builtin::reftype($result)) { }
0 12 elsif (builtin::reftype($result) eq 'SCALAR') { }
5 7 elsif (builtin::reftype($result) eq 'ARRAY') { }
6 1 elsif (builtin::reftype($result) eq 'HASH') { }
149 3 5 $fi ? :
150 3 5 if (not defined builtin::reftype($entry)) { }
2 3 elsif (builtin::reftype($entry) eq 'ARRAY') { }
2 1 elsif (builtin::reftype($entry) eq 'HASH') { }
168 2 5 if (not defined builtin::reftype($entry)) { }
1 4 elsif (builtin::reftype($entry) eq 'ARRAY') { }
3 1 elsif (builtin::reftype($entry) eq 'HASH') { }
194 3 0 unless defined $opt->{'separator'}
205 14 48 if ($outtype eq 'yaml') { }
15 33 elsif ($outtype eq 'json') { }
10 23 elsif ($outtype eq 'ini') { }
13 10 elsif ($outtype eq 'dumper') { }
7 3 elsif ($outtype eq 'xml') { }
2 1 elsif ($outtype eq 'flat') { }
208 0 14 if ($opt->{'yaml-module'}) { }