Branch Coverage

blib/lib/WebService/YouTube/Util.pm
Criterion Covered Total %
branch 4 28 14.2


line true false branch
17 0 0 if ($type ne 'global' and $type ne 'tag' and $type ne 'user')
21 0 1 if (&Encode::is_utf8($arg)) { }
28 0 1 if ($type eq 'user')
38 1 0 if ($fields)
41 0 1 if (&Encode::is_utf8($value)) { }
57 0 0 unless ($video)
64 0 0 if (ref $video) { }
74 0 0 unless ($res->is_success)
80 0 0 if ($content =~ m["/player2\.swf\?([^"]+)",\s*"movie_player"]msx)
83 0 0 if ($content =~ /\bt\b[^:]*:\s*(['"])(.+?)\1/msx)
86 0 0 if ($content =~ /class="errorBox"[^>]*>\s*([^<]+?)\s*
97 0 0 unless ($video)
104 0 0 unless ($video_uri)
108 0 0 unless ($res->is_success)