Condition Coverage

blib/lib/File/KDBX/IO.pm
Criterion Covered Total %
condition 19 53 35.8


and 3 conditions

line !l l&&!r l&&r condition
87 66 256 0 defined $len and $len == 0
143 148 108 183 $read_len < $len and @$buffer
183 0 0 0 XXX and ${$/;} =~ /^\d+$/
0 0 0 XXX and ${$/;} =~ /^\d+$/ and 0 < ${$/;}

or 2 conditions

line l !l condition
54 94 53 $self->_fh // (return 1)
62 0 0 $self->_fh // (return 1)
64 0 0 $self->getc || (return 1)
77 0 0 (shift())->read($c, 1) // 0
82 0 322 $offset //= 0
107 256 66 $len ||= 0
162 0 116 $offset //= 0
171 0 0 $self->_fh // (return "")
177 0 0 $self->_fh // (return "")
226 0 0 $self->_fh // (return -1)
232 0 0 $self->_fh // (return undef)
237 0 0 $self->_fh // (return undef)
250 0 0 $self->_fh // (return 1)

or 3 conditions

line l !l&&r !l&&!r condition
34 2233 73 289 *$self->{$attr} //= ref $default eq "CODE" ? &$default($self) : $default
39 94 0 0 shift() || (caller)[0]
40 0 94 0 ref $class || $class
112 256 0 66 $len or $offset
161 116 0 0 $len //= length $buf