Branch Coverage

blib/lib/Net/SFTP/Server/Buffer.pm
Criterion Covered Total %
branch 0 74 0.0


line true false branch
46 0 0 unless length $_[0] >= 8
48 0 0 if ($big)
52 0 0 unless ($result - $high == $small)
71 0 0 if (my($len) = unpack('N', substr($_[0], 0, 4, '')))
72 0 0 if length $_[0] >= $len
79 0 0 if (my($len) = unpack('N', substr($_[0], 0, 4, '')))
80 0 0 if length $_[0] >= $len
88 0 0 unless my($flags) = buf_shift_uint32($_[0])
89 0 0 if ($flags & 1)
90 0 0 unless ($attrs{'size'}) = buf_shift_uint64($_[0])
92 0 0 if ($flags & 2)
93 0 0 unless ($attrs{'uid'}) = buf_shift_uint32($_[0])
94 0 0 unless ($attrs{'gid'}) = buf_shift_uint32($_[0])
96 0 0 if ($flags & 4)
97 0 0 unless ($attrs{'permissions'}) = buf_shift_uint32($_[0])
99 0 0 if ($flags & 8)
100 0 0 unless ($attrs{'atime'}) = buf_shift_uint32($_[0])
101 0 0 unless ($attrs{'mtime'}) = buf_shift_uint32($_[0])
103 0 0 if ($flags & 2147483648)
104 0 0 unless my($count) = buf_shift_uint32($_[0])
107 0 0 unless my($str) = buf_shift_str($_[0])
133 0 0 unless utf8::downgrade($_[1])
149 0 0 unless ref $attrs eq 'HASH'
150 0 0 if (%$attrs) { }
151 0 0 if (defined $$attrs{'size'})
156 0 0 if (defined $$attrs{'uid'} and defined $$attrs{'gid'}) { }
0 0 elsif (defined $$attrs{'uid'} or defined $$attrs{'gid'}) { }
165 0 0 if (defined $$attrs{'permissions'})
170 0 0 if (defined $$attrs{'atime'} and defined $$attrs{'mtime'}) { }
0 0 elsif (defined $$attrs{'atime'} or defined $$attrs{'mtime'}) { }
180 0 0 if defined $extended
184 0 0 if (defined $extended)
185 0 0 if (ref $extended eq 'HASH')
188 0 0 if (ref $extended eq 'ARRAY') { }
189 0 0 if @$extended & 1
206 0 0 unless ref $name eq 'HASH'
210 0 0 $attrs && %$attrs ? :