Branch Coverage

blib/lib/Text/Livedoor/Wiki/Plugin/Function/Image.pm
Criterion Covered Total %
branch 27 28 96.4


line true false branch
14 1 15 unless scalar @$args
18 1 14 unless Text::Livedoor::Wiki::Utils::is_image_url($image_url)
24 15 23 if ($_ =~ /^\d+$/) { }
1 22 elsif ($_ eq '') { }
7 15 elsif ($_ =~ /^left|right$/i) { }
1 14 elsif ($_ eq 'no_link') { }
25 8 7 if ($flg == 0) { }
6 1 elsif ($flg == 1) { }
35 1 0 if $flg == 0
58 8 6 exists $$args{'width'} ? :
59 6 8 exists $$args{'height'} ? :
60 2 12 length $value ? :
61 7 7 exists $$args{'align'} ? :
64 1 13 if ($$args{'no_link'}) { }