Branch Coverage

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


line true false branch
240 4 1 if scalar @params == 1
261 1 1 if scalar @params == 1
279 1 1 if scalar @params == 1
290 0 9 unless ($event)
313 1 8 if $PagerDuty::Agent::EVAL_ERROR
315 8 1 if ($response and $response->is_success) { }
318 0 1 if ($response)
326 0 0 if $error_message
337 0 1 unless defined $severity
341 1 0 if (exists $severity_hash{$severity}) { }
359 0 10 unless defined $version
367 0 0 defined $string ? :
377 11 0 if (scalar(@params) % 2 == 0) { }
384 1 10 if defined $params{'severity'}