Branch Coverage

blib/lib/Yancy/Model.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
105 0 108 @args == 1 ? :
106 101 7 if $args{'schema'}
107 106 2 exists $args{'read_schema'} ? :
110 94 14 if ($read) { }
1 13 elsif (my(@names) = grep({delete $conf->{$_}{'read_schema'};} keys %$conf)) { }
144 601 0 if (my $e = load_class($class))
145 0 601 if (ref $e)
158 0 601 if (my $e = load_class($class))
159 0 0 if (ref $e)
183 1 94 if (@names) { }
201 96 550 if ($full_schema->{'x-ignore'})
222 1625 575 unless ($data)
223 1600 25 if (my $schema = $self->_schema->{$name})
228 0 25 if $conf->{'x-ignore'}
232 575 0 unless (&blessed($data) and $data->isa("Yancy::Model::Schema"))
248 52 0 unless (@names)
277 501 145 if (my $right_props = $right->{'properties'})
288 501 1635 if $k eq "properties"