Branch Coverage

blib/lib/App/NDTools/NDQuery.pm
Criterion Covered Total %
branch 42 50 84.0


line true false branch
40 4 40 if ($self->{'OPTS'}{'replace'})
42 0 4 if $self->{'OPTS'}{'keys'}
44 1 3 if $self->{'OPTS'}{'list'}
46 1 2 if $self->{'OPTS'}{'md5'}
58 41 1 unless defined $self->{'OPTS'}{'colors'}
65 0 12 if $@
86 26 3 unless $self->{'OPTS'}{'replace'}
93 42 0 @{$self->{'ARGV'};} ? :
96 15 31 if (defined $self->{'OPTS'}{'path'})
98 0 15 if $@
100 2 13 unless (@data = &path($data[0], $spath, 'deref', 1))
102 1 1 if $self->{'OPTS'}{'strict'}
108 7 37 if @{$self->{'OPTS'}{'grep'};}
111 4 0 if ref $_
114 4 40 if ($self->{'OPTS'}{'keys'}) { }
6 34 elsif ($self->{'OPTS'}{'list'}) { }
5 29 elsif ($self->{'OPTS'}{'md5'}) { }
135 1 9 if (ref $_ eq 'HASH') { }
3 6 elsif (ref $_ eq 'ARRAY') { }
151 1 5 $self->{'OPTS'}{'colors'} ? :
152 1 5 $self->{'OPTS'}{'colors'} ? :
166 34 21 if ($self->{'OPTS'}{'values'})
168 0 34 if ($self->{'OPTS'}{'ofmt'} eq 'RAW' and not ref ${$value;}) { }
186 5 0 @{$data;} == 1 ? :
0 5 ref $uri ? :