Branch Coverage

blib/lib/Cisco/Accounting.pm
Criterion Covered Total %
branch 0 98 0.0


line true false branch
46 0 0 defined $parms{'persistent'} ? :
54 0 0 defined $parms{'keep_history'} ? :
82 0 0 unless ($$self{'session'})
89 0 0 if ($$self{'acct_type'} =~ /cisco/i) { }
0 0 elsif ($$self{'acct_type'} =~ /ipcad/i) { }
91 0 0 if scalar @result
95 0 0 if scalar @result
99 0 0 if ($disconnect > 0 and $$self{'persistent'} <= 0)
103 0 0 if ($@)
154 0 0 unless ($$self{'session'})
159 0 0 if ($@)
165 0 0 if ($$self{'acct_type'} =~ /cisco/i) { }
0 0 elsif ($$self{'acct_type'} =~ /ipcad/i) { }
172 0 0 if ($@)
180 0 0 unless ($$self{'data'})
186 0 0 if ($$self{'lastpoll_details'} > 0)
191 0 0 if ($disconnect > 0 and $$self{'persistent'} <= 0)
205 0 0 if ($$self{'data'}) { }
220 0 0 if ($$self{'lastpoll_data'}) { }
234 0 0 if ($$self{'data'}) { }
249 0 0 if ($$self{'data'}) { }
277 0 0 unless ($$self{'session'})
282 0 0 if ($@)
288 0 0 if ($$self{'acct_type'} =~ /cisco/i) { }
0 0 elsif ($$self{'acct_type'} =~ /ipcad/i) { }
293 0 0 if (grep {$_ =~ /permission denied/i;} @output)
298 0 0 if ($@)
302 0 0 if ($disconnect > 0 and $$self{'persistent'} <= 0)
315 0 0 if ($$self{'session'})
336 0 0 if ($$self{'acct_type'} =~ /ipcad/i)
342 0 0 unless scalar @int_id > 0
343 0 0 unless scalar @{$$self{'interfaces'};} > 0
349 0 0 unless ($$self{'session'})
354 0 0 if ($@)
360 0 0 if ($$self{'acct_type'} =~ /cisco/i)
365 0 0 if (grep {$int->get_id =~ /^$_$/;} @int_id and $int->get_accounting_status != $status)
368 0 0 unless $status > 0
379 0 0 if ($@)
383 0 0 if ($disconnect > 0 and $$self{'persistent'} <= 0)
398 0 0 if ($$self{'acct_type'} =~ /cisco/i) { }
0 0 elsif ($$self{'acct_type'} =~ /ipcad/i) { }
411 0 0 if ($@)
419 0 0 if ($enable)
423 0 0 if ($@)
435 0 0 unless $$self{'session'}
463 0 0 if ($int =~ /^(\S+)/) { }
0 0 elsif ($int =~ /IP output packet accounting is/i) { }
467 0 0 if ($int =~ /enabled/i) { }
504 0 0 if ($int =~ /Interface (.*):/i)