Branch Coverage

blib/lib/Text/Livedoor/Wiki/Utils.pm
Criterion Covered Total %
branch 12 12 100.0


line true false branch
35 6 29 unless &is_url($url)
37 18 11 $url =~ /\.(jpg|jpeg|png|gif|bmp)(\?.*|#.*)?$/i ? :
41 29 6 $url =~ m[^(?:http|https|ftp)://[-_.!~*'()a-zA-Z0-9;/?:\@&=+\$,%#]+$] ? :
51 7 23 if ($value =~ /(\d+),(\d+)/) { }
3 20 elsif ($value =~ /,(\d+)/) { }
5 15 elsif ($value =~ /(\d+)/) { }