Condition Coverage

blib/lib/Net/BitTorrent/Torrent/File.pm
Criterion Covered Total %
condition 28 63 44.4


and 3 conditions

line !l l&&!r l&&r condition
30 2 135 0 $$args{'Torrent'} and blessed($$args{'Torrent'})
0 135 0 $$args{'Torrent'} and blessed($$args{'Torrent'}) and $$args{'Torrent'}->isa('Net::BitTorrent::Torrent')
37 2 133 0 defined $$args{'Size'} and $$args{'Size'} =~ /^\d+$/
42 2 129 0 defined $$args{'Index'} and $$args{'Index'} =~ /^\d+$/
105 1 328 0 $mode and $mode =~ /^[rw]$/
110 47 244 36 defined $handle{refaddr $self} and defined $mode{refaddr $self}
268 1 40 0 defined $length and $length =~ /^\d+$/
364 48 0 0 $position < 0 and $wence == 0
48 0 0 $position + $self->_systell < 0 and $wence == 1
40 8 0 $position > 0 and $wence == 2
444 302 0 0 $^O eq 'MSWin32' and utf8::is_utf8($path{refaddr $self})
302 0 0 $^O eq 'MSWin32' and utf8::is_utf8($path{refaddr $self}) and require Win32API::File
0 0 0 $^O eq 'MSWin32' and utf8::is_utf8($path{refaddr $self}) and require Win32API::File and require Encode
495 27 0 0 defined $win32_handle{refaddr $self} and require Win32API::File
519 19 0 0 $^O eq 'MSWin32' and utf8::is_utf8($path{refaddr $self})
19 0 0 $^O eq 'MSWin32' and utf8::is_utf8($path{refaddr $self}) and require Win32
0 0 0 $^O eq 'MSWin32' and utf8::is_utf8($path{refaddr $self}) and require Win32 and require Win32API::File
0 0 0 $^O eq 'MSWin32' and utf8::is_utf8($path{refaddr $self}) and require Win32 and require Win32API::File and require Encode

or 3 conditions

line l !l&&r !l&&!r condition
20 1 1 138 not $args or ref $args ne 'HASH'
364 0 0 48 $position < 0 and $wence == 0 or $position + $self->_systell < 0 and $wence == 1
0 0 48 $position < 0 and $wence == 0 or $position + $self->_systell < 0 and $wence == 1 or $position > 0 and $wence == 2