Branch Coverage

lib/RRDTool/Rawish.pm
Criterion Covered Total %
branch 66 82 80.4


line true false branch
14 0 1 @args == 1 && ref $args[0] eq 'HASH' ? :
16 0 1 unless my $rrdtool_path = $args{'rrdtool_path'} || File::Which::which('rrdtool')
18 1 0 unless (-x $rrdtool_path)
41 1 4 unless defined $$self{'rrdfile'}
42 1 3 if ref $params ne 'ARRAY'
43 1 2 if defined $opts and ref $opts ne 'HASH'
45 1 1 if $$self{'remote'}
53 1 3 unless defined $$self{'rrdfile'}
54 1 2 if ref $params ne 'ARRAY'
55 1 1 if defined $opts and ref $opts ne 'HASH'
57 0 1 if $$self{'remote'}
65 1 1 unless $filename
66 0 1 if ref $params ne 'ARRAY'
67 0 1 if defined $opts and ref $opts ne 'HASH'
69 0 1 if $$self{'remote'}
77 1 2 unless defined $$self{'rrdfile'}
78 1 1 if defined $opts and ref $opts ne 'HASH'
80 0 1 if $$self{'remote'}
88 1 3 unless defined $$self{'rrdfile'}
89 1 2 unless defined $xmlfile
90 1 1 if defined $opts and ref $opts ne 'HASH'
98 1 1 unless defined $$self{'rrdfile'}
101 0 1 if $$self{'remote'}
104 0 1 if not $text and $exit_status != 0
113 1 3 unless defined $$self{'rrdfile'}
114 1 2 unless defined $CF
115 1 1 if defined $opts and ref $opts ne 'HASH'
117 0 1 if $$self{'remote'}
120 0 1 if not $text and $exit_status != 0
128 1 2 if ref $params ne 'ARRAY'
129 1 1 if defined $opts and ref $opts ne 'HASH'
131 0 1 if $$self{'remote'}
139 1 1 unless defined $$self{'rrdfile'}
141 0 1 $$self{'remote'} ? :
144 0 1 if not $text and $exit_status != 0
151 4 26 if ($k =~ /^rra\[(\d+)]\.(.+)\[(\d+)\]\.(.+)$/) { }
5 21 elsif ($k =~ /^rra\[(\d+)\]\.(.+)$/) { }
16 5 elsif ($k =~ /^ds\[(.+)\]\.(.+)$/) { }
174 4 0 if $exit_status != 0
185 2 4 if $exit_status != 0
198 3 7 $$opts{$_} eq 1 ? :