Branch Coverage

blib/lib/Mail/Milter/Authentication/Metric.pm
Criterion Covered Total %
branch 20 42 47.6


line true false branch
27 28 9 defined $config->{'metric_connection'} ? :
0 37 defined $config->{'metric_port'} ? :
30 28 9 if ($self->{'enabled'})
33 0 28 if (defined $config->{'metric_tempfile'})
58 57 42342 if ($text eq '')
67 1895 6973 unless $self->{'enabled'}
74 0 6973 unless defined $count
79 6973 0 if ($labels)
102 16 346 unless $self->{'enabled'}
115 0 136 unless $self->{'enabled'}
129 0 9 unless $self->{'enabled'}
145 0 9 unless (defined $req and $req =~ m[ ^\s*(GET|POST|PUT|DELETE|PUSH|HEAD|OPTIONS)\s+(.+)\s+(HTTP/1\.[01])\s*$ ]xi)
156 0 9 if ($request_method ne 'GET')
166 9 0 if $req eq ''
169 9 0 if ($request_uri eq '/metrics') { }
0 0 elsif ($request_uri eq '/') { }
0 0 elsif ($request_uri eq '/config/json' or $request_uri eq '/config') { }
0 0 elsif ($request_uri eq '/config/toml') { }
0 0 elsif ($request_uri eq '/grafana') { }
203 0 0 if $Handler eq '_Handler'
272 0 0 if ($result) { }