Branch Coverage

blib/lib/App/NDTools/NDQuery.pm
Criterion Covered Total %
branch 43 50 86.0


line true false branch
40 4 41 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 42 1 unless defined $self->{'OPTS'}{'colors'}
65 0 12 if $@
86 26 3 unless $self->{'OPTS'}{'replace'}
93 43 0 @{$self->{'ARGV'};} ? :
96 15 32 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 38 if @{$self->{'OPTS'}{'grep'};}
111 4 0 if ref $_
114 4 41 if ($self->{'OPTS'}{'keys'}) { }
7 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 6 $self->{'OPTS'}{'colors'} ? :
152 1 6 $self->{'OPTS'}{'colors'} ? :
166 37 21 if ($self->{'OPTS'}{'values'})
168 2 35 if ($self->{'OPTS'}{'ofmt'} eq 'RAW' and not ref ${$value;}) { }
186 5 0 @{$data;} == 1 ? :
0 5 ref $uri ? :