Branch Coverage

blib/lib/WebService/DataDog/Alert.pm
Criterion Covered Total %
branch 0 44 0.0


line true false branch
59 0 0 unless (defined $response and defined $$response{'alerts'})
127 0 0 if not defined $args{$arg} or $args{$arg} eq ''
141 0 0 if (defined $args{'name'} and $args{'name'} ne '')
146 0 0 if (defined $args{'message'} and $args{'message'} ne '')
151 0 0 if (defined $args{'silenced'} and $args{'silenced'} ne '')
157 0 0 $args{'silenced'} == 0 ? :
166 0 0 if (not defined $response && defined $$response{'state'} or $$response{'state'} ne 'OK')
204 0 0 if not defined $args{$arg} or $args{$arg} eq ''
209 0 0 unless $args{'id'} =~ /^\d+$/
220 0 0 unless (defined $response and defined $$response{'id'})
291 0 0 if not defined $args{$arg} or $args{$arg} eq ''
312 0 0 if (defined $args{'name'} and $args{'name'} ne '')
317 0 0 if (defined $args{'message'} and $args{'message'} ne '')
322 0 0 if (defined $args{'silenced'} and $args{'silenced'} ne '')
328 0 0 $args{'silenced'} == 0 ? :
337 0 0 if (not defined $response && defined $$response{'state'} or $$response{'state'} ne 'OK')
432 0 0 if not defined $args{$arg} or $args{$arg} eq ''
437 0 0 unless $args{'id'} =~ /^\d+$/
453 0 0 if (/404/)
458 0 0 if $should_croak
478 0 0 if defined $args{'name'} and length $args{'name'} > 80
482 0 0 if defined $args{'silenced'} and not $args{'silenced'} =~ /^[01]$/