Branch Coverage

blib/lib/Linux/GetPidstat/Writer/Mackerel.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
19 0 14 unless defined $opt{'mackerel_metric_key_prefix'}
29 1 6 if ($self->{'dry_run'})
36 4 2 if ($metric_type eq 'service') { }
1 1 elsif ($metric_type eq 'host') { }
55 1 4 if (chomp $@)
61 1 3 if ($is_success != JSON::true() or $content->{'error'})
82 0 108 $metric_type eq 'host' ? :
88 2 4 if ($self->{'dry_run'})
95 4 0 if ($metric_type eq 'service') { }
0 0 elsif ($metric_type eq 'host') { }
105 0 4 if (chomp $@)
111 0 4 if ($is_success != JSON::true() or $content->{'error'})