Branch Coverage

blib/lib/POE/Component/IRC/Plugin/RTorrentStatus.pm
Criterion Covered Total %
branch 5 48 10.4


line true false branch
25 0 1 unless (defined $$self{'Torrent_log'})
29 0 1 if (ref $$self{'Channels'} ne 'ARRAY' or not $$self{'Channels'})
34 0 1 unless (-e $$self{'Torrent_log'})
35 0 0 unless open my $foo, '>', $$self{'Torrent_log'}
41 1 0 unless defined $$self{'Method'}
42 1 0 unless defined $$self{'Color'}
67 0 0 if $filename ne $$self{'Torrent_log'}
73 0 0 if (defined $msg)
86 0 0 $$self{'Color'} ? :
98 0 0 if $secs == 0
104 0 0 $$self{'Color'} ? :
114 0 0 $$self{'Color'} ? :
118 0 0 if ($rars > 0)
119 0 0 $rars > 1 ? :
130 0 0 $rars > 1 ? :
131 0 0 defined $file ? :
133 0 0 $$self{'Color'} ? :
142 0 0 unless defined $error
144 0 0 $$self{'Color'} ? :
152 0 0 if $ratio != 0
156 0 0 if ($size_bytes == $down_bytes) { }
157 0 0 $$self{'Color'} ? :
163 0 0 $$self{'Color'} ? :
183 0 0 if $bytes == 0