Condition Coverage

blib/lib/Mojolicious/Plugin/Prometheus.pm
Criterion Covered Total %
condition 26 34 76.4


or 2 conditions

line l !l condition
28 2 8 $config->{'shm_key'} || '12345'
45 1 9 $config->{'namespace'} // undef
0 10 $config->{'subsystem'} // undef
0 10 $config->{'duration_buckets'} // undef
55 1 9 $config->{'namespace'} // undef
0 10 $config->{'subsystem'} // undef
1 9 $config->{'request_buckets'} // [1, 50, 100, 1000, 10000, 50000, 100000, 500000, 1000000]
67 1 9 $config->{'namespace'} // undef
0 10 $config->{'subsystem'} // undef
1 9 $config->{'response_buckets'} // [5, 50, 100, 1000, 10000, 50000, 100000, 500000, 1000000]
75 1 9 $config->{'namespace'} // undef
0 10 $config->{'subsystem'} // undef
110 1 9 $config->{'path'} // "/metrics"
131 9 0 'IPC::ShareLite'->new('-key', $self->{'key'}, '-create', 1, '-destroy', 0) || die($!)

or 3 conditions

line l !l&&r !l&&!r condition
109 1 9 0 $config->{'route'} // $app->routes->under("/")
131 48 9 0 $self->{'share'} ||= 'IPC::ShareLite'->new('-key', $self->{'key'}, '-create', 1, '-destroy', 0) || die($!)