Branch Coverage

blib/lib/PagerDuty/Agent.pm
Criterion Covered Total %
branch 18 28 64.2


line true false branch
237 4 1 if scalar @params == 1
258 1 1 if scalar @params == 1
276 1 1 if scalar @params == 1
287 0 9 unless ($event)
310 1 8 if $PagerDuty::Agent::EVAL_ERROR
312 8 1 if ($response and $response->is_success) { }
315 0 1 if ($response)
321 0 0 if $PagerDuty::Agent::EVAL_ERROR
334 0 1 unless defined $severity
338 1 0 if (exists $severity_hash{$severity}) { }
356 0 10 unless defined $version
364 0 0 defined $string ? :
374 11 0 if (scalar(@params) % 2 == 0) { }
381 1 10 if defined $params{'severity'}