Branch Coverage

blib/lib/Net/Lighthouse/Util.pm
Criterion Covered Total %
branch 31 46 67.3


line true false branch
16 0 14 if ($@) { }
39 0 62 unless $ref
40 16 46 unless ref $ref
43 16 46 if (keys %$ref == 1)
49 13 875 unless $$ref{$k}
50 549 339 if (ref $$ref{$k} eq 'HASH')
51 96 453 if ($$ref{$k}{-'nil'} and $$ref{$k}{-'nil'} eq 'true') { }
53 400 elsif ($$ref{$k}{-'type'} and $$ref{$k}{-'type'} eq 'boolean') { }
99 301 elsif ($$ref{$k}{-'type'} and $$ref{$k}{-'type'} eq 'datetime') { }
7 294 elsif ($$ref{$k}{-'type'} and $$ref{$k}{-'type'} eq 'yaml') { }
286 8 elsif ($$ref{$k}{-'type'} and $$ref{$k}{-'type'} eq 'integer') { }
0 8 elsif (defined $$ref{$k}{'content'}) { }
0 16 elsif (keys %{$$ref{$k};} == 0 or keys %{$$ref{$k};} == 1 and exists $$ref{$k}{-'type'}) { }
55 18 35 if ($$ref{$k}{'content'} eq 'true') { }
70 280 6 if (defined $$ref{$k}{'content'} and $$ref{$k}{'content'} ne '') { }
97 0 0 if ($args{'boolean'})
100 0 0 unless exists $$ref{$boolean}
101 0 0 if ($$ref{$boolean}) { }
111 0 0 unless exists $$ref{$normal}
115 0 0 if $args{'root'}
122 5 94 unless $string
123 94 0 if ($string =~ /(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(Z|[+-]\d{2}:\d{2})/)
128 93 1 $7 eq 'Z' ? :