Branch Coverage

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


line true false branch
105 0 106 @args == 1 ? :
106 99 7 if $args{'schema'}
107 104 2 exists $args{'read_schema'} ? :
110 92 14 if ($read) { }
1 13 elsif (my(@names) = grep({delete $conf->{$_}{'read_schema'};} keys %$conf)) { }
144 516 0 if (my $e = load_class($class))
145 0 516 if (ref $e)
158 0 516 if (my $e = load_class($class))
159 0 0 if (ref $e)
183 1 92 if (@names) { }
201 94 466 if ($full_schema->{'x-ignore'})
222 1486 491 unless ($data)
223 1461 25 if (my $schema = $self->_schema->{$name})
228 0 25 if $conf->{'x-ignore'}
232 491 0 unless (&blessed($data) and $data->isa("Yancy::Model::Schema"))
248 51 0 unless (@names)
277 419 141 if (my $right_props = $right->{'properties'})
288 419 1248 if $k eq "properties"