Branch Coverage

blib/lib/BBCode/Tag/IMG.pm
Criterion Covered Total %
branch 18 36 50.0


line true false branch
11 4 4 if (ref $this_or_class and defined $this_or_class->param('SRC'))
35 4 6 if ($param eq 'SRC')
37 3 1 if (defined $url) { }
38 3 0 if ($url->scheme =~ /^(?:http|https|ftp|data)$/) { }
47 2 4 if ($param eq 'W' or $param eq 'H')
56 6 0 if (defined $src)
62 6 0 if defined $src and defined $alt
65 0 0 if (defined $src) { }
67 0 0 unless defined $url
72 0 0 unless defined $url
76 0 0 unless defined $alt
87 1 0 if (defined $src and defined $alt)
88 0 1 unless (defined $t)
94 1 0 if defined $w
95 1 0 if defined $h
96 1 0 if defined $t
106 0 2 unless defined $ret
109 2 0 if (defined $src and defined $alt)