Condition Coverage

blib/lib/DiaColloDB/EnumFile.pm
Criterion Covered Total %
condition 0 101 0.0


and 3 conditions

line !l l&&!r l&&r condition
96 0 0 0 not $force and UNIVERSAL::isa((ref $enum || $enum) . '::MMap', $class)
120 0 0 0 fcread($flags) and not fctrunc($flags)
124 0 0 0 $enum->{'hclass'} and not $enum->isa($enum->{'hclass'})
151 0 0 0 $enum->opened and fcwrite($enum->{'flags'})
175 0 0 0 defined $enum->{'sfh'} && defined $enum->{'ixfh'} && defined $enum->{'sxfh'}
187 0 0 0 $enum->opened && fh_reopen($enum->{'sfh'}, "$base.es") && fh_reopen($enum->{'ixfh'}, "$base.eix") && fh_reopen($enum->{'sxfh'}, "$base.esx")
225 0 0 0 $enum->opened and fcwrite($enum->{'flags'})
249 0 0 0 $utf8 and utf8::is_utf8($s)
334 0 0 0 $e2->opened and not $e2->loaded
415 0 0 0 $pack_s && !UNIVERSAL::isa($pack_s, 'CODE')
441 0 0 0 $pack_s && !UNIVERSAL::isa($pack_s, 'CODE')
553 0 0 0 $enum->{'utf8'} and utf8::is_utf8($key)
612 0 0 0 $utf8 and not utf8::is_utf8($re)

or 2 conditions

line l !l condition
82 0 0 $enum->{'s2i'} //= {}
83 0 0 $enum->{'i2s'} //= []
160 0 0 $enum->{'s2i'} //= {}
161 0 0 $enum->{'i2s'} //= []
248 0 0 $_ //= ''
271 0 0 $enum->reopen or return undef
547 0 0 $ilo //= 0

or 3 conditions

line l !l&&r !l&&!r condition
53 0 0 0 ref $that || $that
96 0 0 0 ref $enum || $enum
0 0 0 UNIVERSAL::isa($enum, $class) or not $force and UNIVERSAL::isa((ref $enum || $enum) . '::MMap', $class)
115 0 0 0 $base //= $enum->{'base'}
116 0 0 0 $flags //= $enum->{'flags'}
155 0 0 0 not defined $enum->{'sxfh'} or $enum->{'sxfh'}->close
156 0 0 0 not defined $enum->{'ixfh'} or $enum->{'ixfh'}->close
157 0 0 0 not defined $enum->{'sfh'} or $enum->{'sfh'}->close
182 0 0 0 $enum->{'base'} || "$enum"
226 0 0 0 $force or $enum->dirty
283 0 0 0 $enum->loaded or not $enum->opened
376 0 0 0 ref $_[0]{$_} || $_ =~ /^(?:flags|perms|base|loaded|dirty|hclass)$/
384 0 0 0 defined $hdr || fccreat($enum->{'flags'})
420 0 0 0 /^%%/ or /^$/
548 0 0 0 $ihi //= $enum->{'dirty'} ? (-s $sxfh) / $len_sx : $enum->{'size'}
617 0 0 0 $enum->loaded or not $enum->opened