Branch Coverage

blib/lib/Linux/GetPidstat.pm
Criterion Covered Total %
branch 16 18 88.8


line true false branch
27 46 0 if (length $args{'datetime'}) { }
39 11 35 unless (@$program_pid_mapping)
48 9 16 unless (%$ret_pidstats)
67 11 123 unless (length $args{'pid_dir'})
74 41 82 if (length $mackerel_metric_type and $mackerel_metric_type eq 'service')
75 11 30 unless (length $mackerel_api_key and length $mackerel_service_name)
83 22 60 if (length $mackerel_metric_type and $mackerel_metric_type eq 'host')
84 0 11 unless (length $mackerel_api_key and length $mackerel_service_name and length $mackerel_host_id)
93 49 11 if (length $res_file)