Branch Coverage

blib/lib/WebService/DataDog/Event.pm
Criterion Covered Total %
branch 0 78 0.0


line true false branch
100 0 0 defined $args{'end'} ? :
102 0 0 if (defined $args{'priority'})
107 0 0 if (defined $args{'tags'})
112 0 0 if (defined $args{'sources'})
123 0 0 unless (defined $response and defined $$response{'events'})
165 0 0 if not defined $args{$arg} or $args{$arg} eq ''
170 0 0 unless $args{'id'} =~ /^\d+$/
180 0 0 unless (defined $response and defined $$response{'event'})
292 0 0 if (defined $args{'date_happened'})
297 0 0 if (defined $args{'priority'})
302 0 0 if (defined $args{'related_event_id'})
307 0 0 if (defined $args{'tags'})
312 0 0 if (defined $args{'alert_type'})
317 0 0 if (defined $args{'source_type_name'})
330 0 0 unless $$response{'status'} eq 'ok'
353 0 0 if not defined $args{$arg} or $args{$arg} eq ''
358 0 0 unless $args{'start'} =~ /^\d{10,}$/
362 0 0 if (defined $args{'end'})
364 0 0 unless $args{'end'} =~ /^\d{10,}$/
369 0 0 if (defined $args{'priority'})
371 0 0 unless lc $args{'priority'} eq 'low' or lc $args{'priority'} eq 'normal'
376 0 0 if (defined $args{'tags'})
378 0 0 unless (Data::Validate::Type::is_arrayref($args{'tags'}))
385 0 0 if (defined $args{'sources'})
387 0 0 unless (Data::Validate::Type::is_arrayref($args{'sources'}))
411 0 0 if not defined $args{$arg} or $args{$arg} eq ''
416 0 0 if length $args{'title'} > 100
420 0 0 if (defined $args{'date_happened'})
422 0 0 unless $args{'date_happened'} =~ /^\d{10,}$/
427 0 0 if (defined $args{'priority'})
429 0 0 unless lc $args{'priority'} eq 'low' or lc $args{'priority'} eq 'normal'
434 0 0 if (defined $args{'related_event_id'})
436 0 0 unless $args{'related_event_id'} =~ /^\d+$/
441 0 0 if (defined $args{'tags'})
443 0 0 unless (Data::Validate::Type::is_arrayref($args{'tags'}))
450 0 0 if (defined $args{'alert_type'})
452 0 0 unless $args{'alert_type'} =~ /^error|warning|info|success$/
457 0 0 if (defined $args{'source_type_name'})
459 0 0 unless $args{'source_type_name'} =~ /^nagios|hudson|jenkins|user|my apps|feed|chef|puppet|git|bitbucket|fabric|capistrano$/