Branch Coverage

blib/lib/WWW/Xunlei/Downloader.pm
Criterion Covered Total %
branch 5 28 17.8


line true false branch
44 12 0 if (defined $parameters->{$k}) { }
73 0 1 wantarray ? :
105 1 0 if (@_ > 0) { }
130 0 1 wantarray ? :
153 0 0 $delete_file ? :
161 0 0 if (ref $tasks ne 'ARRAY')
173 0 0 wantarray ? :
222 0 0 unless ($url =~ /^(http|https|ftp|magnet|ed2k|thunder|mms|rtsp)\:.+/)
240 0 0 if ($filename and $task->{'name'} ne $filename)
255 0 0 wantarray ? :
265 0 0 if ($task_info->{'taskInfo'}{'type'} == 2) { }
315 0 0 if $btsub->{'size'} < 15360
316 0 0 if $btsub->{'name'} =~ /txt|html|htm|url$/i
326 0 6 unless ($self->is_online)