Condition Coverage

blib/lib/Mojolicious/Plugin/Prometheus.pm
Criterion Covered Total %
condition 25 34 73.5


or 2 conditions

line l !l condition
28 0 8 $config->{'shm_key'} || '12345'
44 1 7 $config->{'namespace'} // undef
0 8 $config->{'subsystem'} // undef
0 8 $config->{'duration_buckets'} // undef
54 1 7 $config->{'namespace'} // undef
0 8 $config->{'subsystem'} // undef
1 7 $config->{'request_buckets'} // [1, 50, 100, 1000, 10000, 50000, 100000, 500000, 1000000]
66 1 7 $config->{'namespace'} // undef
0 8 $config->{'subsystem'} // undef
1 7 $config->{'response_buckets'} // [5, 50, 100, 1000, 10000, 50000, 100000, 500000, 1000000]
74 1 7 $config->{'namespace'} // undef
0 8 $config->{'subsystem'} // undef
123 1 7 $config->{'path'} // '/metrics'
142 8 0 'IPC::ShareLite'->new('-key', $self->{'key'}, '-create', 1, '-destroy', 0) || die($!)

or 3 conditions

line l !l&&r !l&&!r condition
122 1 7 0 $config->{'route'} // $app->routes->under('/')
142 242 8 0 $self->{'share'} ||= 'IPC::ShareLite'->new('-key', $self->{'key'}, '-create', 1, '-destroy', 0) || die($!)