Branch Coverage

blib/lib/MikroTik/Client/Query.pm
Criterion Covered Total %
branch 44 46 95.6


line true false branch
11 0 20 builtin::blessed($_[0]) ? :
13 1 19 if ref $query eq "REF" and ref $$query eq "ARRAY"
15 18 1 if (my $type = ref $query) { }
24 19 11 if ref $items eq "HASH"
31 1 59 if (ref $el eq 'REF' and ref $$el eq 'ARRAY') { }
5 54 elsif (my $type = ref $el) { }
7 47 elsif ($el =~ /^-(?:and|or)$/) { }
2 45 elsif ($el =~ /^-has(?:_not)?$/) { }
44 1 1 $el eq '-has_not' ? :
53 51 7 if @expr
56 15 15 if $count > 1
62 12 0 $_[0] eq 'ARRAY' || $_[0] eq '-or' ? :
22 12 $_[0] eq 'HASH' || $_[0] eq '-and' ? :
71 7 38 if ($type eq 'HASH') { }
6 32 elsif ($type eq 'ARRAY') { }
86 2 8 unless @$block
89 4 4 if @$block[0] eq "-and" or @$block[0] eq "-or"
95 5 19 ref $_ eq 'HASH' ? :
99 22 2 if @expr
102 7 1 if $count > 1
113 4 8 if ref $val eq "ARRAY"
118 2 6 if $count > 1
125 4 23 if $op eq "-not"