Condition Coverage

blib/lib/Mojolicious/Plugin/Gravatar.pm
Criterion Covered Total %
condition 19 32 59.3


and 3 conditions

line !l l&&!r l&&r condition
55 0 0 4 $options{'size'} >= 1 && $options{'size'} <= 512
3 4 0 $options{'size'} and not $options{'size'} >= 1 && $options{'size'} <= 512
59 5 2 0 $options{'rating'} and not $options{'rating'} =~ /^(?:g|pg|r|x)$/i
63 6 1 0 $options{'scheme'} and not $options{'scheme'} =~ /^https?$/i

or 2 conditions

line l !l condition
14 1 0 $conf ||= {}
17 1 0 $$conf{'size'} ||= 80
18 1 0 $$conf{'rating'} ||= 'PG'
28 0 3 $options{'scheme'} || $$conf{'scheme'} || $c->req->url->to_abs->scheme || 'http'

or 3 conditions

line l !l&&r !l&&!r condition
25 1 3 0 $options{'default'} || $$conf{'default'}
26 2 2 0 $options{'size'} || $$conf{'size'}
27 1 3 0 $options{'rating'} || $$conf{'rating'}
43 1 1 0 $options{'size'} || $$conf{'size'}