Branch Coverage

blib/lib/DBIx/Class/EasyFixture/Definition.pm
Criterion Covered Total %
branch 43 44 97.7


line true false branch
79 18 444 if ($self->group) { }
100 8 80 if $methods->{'deferred'}
110 45 4 unless $methods->{'deferred'}
120 1 17 unless (@group)
123 1 16 if (my(@unknown) = sort(grep({not $self->fixture_exists($_);} @group)))
132 1 443 unless (keys %definition)
136 1 442 if (my(@unknown) = sort(keys %definition))
147 2 440 if ($class xor $data)
148 1 1 $class ? :
149 1 1 $class ? :
158 256 184 unless $next
160 0 184 unless 'ARRAY' eq ref $next
163 1 207 unless (defined $child)
166 1 206 if (ref $child)
169 1 205 unless ($self->fixture_exists($child))
183 217 220 unless $requires
184 1 219 unless ('HASH' eq ref $requires)
192 1 255 unless ($self->fixture_exists($parent))
196 177 78 unless (ref $methods)
203 1 77 if (my(@bad_keys) = grep({not /^(?:our|their|deferred)$/;} keys %$methods))
206 1 76 unless (exists $methods->{'our'})
209 1 75 unless (exists $methods->{'their'})