Condition Coverage

blib/lib/DBIx/Migration/Directories.pm
Criterion Covered Total %
condition 41 57 71.9


and 3 conditions

line !l l&&!r l&&r condition
22 16 4 1 $args{'desired_version_from'} and not $args{'schema'}
30 20 0 0 $args{'schema'} =~ s/::/-/g and not $args{'desired_version_from'}
57 0 0 18 $$self{'base'} and $$self{'schema'}
0 6 12 $$self{'base'} and $$self{'schema'} and not $$self{'common_dir'}
74 0 0 6 $$self{'schema'} and $$self{'base'}
122 4 0 0 ref ${$svar;} and ${$svar;}->can('numify')
128 1 0 0 ref ${$vvar;} and ${$vvar;}->can('numify')
183 64 6 122 !/^\./ && -d "$dir/$_"
254 27 0 37 not @rv and @candidates
304 2 0 33 $$self{'common_dir'} and $dir ne $$self{'common_dir'}
306 7 24 2 -d $d1 and -d $d2
384 11 5 2 $$self{'schema'} eq $schema and not $self->version_as_number($to)

or 2 conditions

line l !l condition
163 20 1 $self->detect_package_version || $self->detect_highest_version || undef
196 47 59 $migration_map{$from} ||= {}
394 15 5 $$self{'current_version'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
194 47 46 29 $versions{$self->version_as_number($to)} ||= $to
197 5 101 0 $migration_map{$from}{$to} ||= $i
281 72 0 40 /^\./ || /\~$/
351 0 17 15 not $$self{'schema'} or $$self{'schema'} ne $schema
17 13 2 not $$self{'schema'} or $$self{'schema'} ne $schema or $self->version_as_number($to)