Condition Coverage

blib/lib/Mojolicious/Plugin/BlogSpam.pm
Criterion Covered Total %
condition 9 62 14.5


and 3 conditions

line !l l&&!r l&&r condition
122 0 0 0 $_[-1] and ref $_[-1]
0 0 0 $_[-1] and ref $_[-1] and ref $_[-1] eq 'CODE'
125 0 0 0 $self->ip and $self->comment
134 0 0 0 $option_string and $option_string =~ /(?:^|,)mandatory=([^,]+?)(?:,|$)/gu
183 0 0 0 $_[-1] and ref $_[-1]
0 0 0 $_[-1] and ref $_[-1] and ref $_[-1] eq 'CODE'
186 0 0 0 $self->comment and $train
0 0 0 $self->comment and $train and $train =~ /^(?:ok|spam)$/u
227 0 0 0 $_[-1] and ref $_[-1]
0 0 0 $_[-1] and ref $_[-1] and ref $_[-1] eq 'CODE'
257 0 0 0 $_[-1] and ref $_[-1]
0 0 0 $_[-1] and ref $_[-1] and ref $_[-1] eq 'CODE'
435 0 0 0 ref $_[-1] and ref $_[-1] eq 'CODE'

or 2 conditions

line l !l condition
27 1 0 $params ||= {}
36 0 1 delete $params->{'url'} || 'http://test.blogspam.net/'
40 0 1 delete $params->{'port'} || '8888'
50 0 0 delete $params->{'log_level'} || 'info'
97 1 1 $headers->host || ''
323 0 0 $2 || ''
531 0 0 $code ||= '*'

or 3 conditions

line l !l&&r !l&&!r condition
259 0 0 0 shift() || $self->{'site'}
387 1 0 0 %options or $self->{'base_options'}
406 1 1 6 $options{$n} or $base->{$n}