Condition Coverage

blib/lib/Mojolicious/Plugin/Yancy.pm
Criterion Covered Total %
condition 29 39 74.3


and 3 conditions

line !l l&&!r l&&r condition
650 49 5 0 $config->{'openapi'} and $config->{'schema'} || $config->{'read_schema'}
669 53 0 0 $config->{'model'} && &blessed($config->{'model'})
828 41 13 4 $prop->{'format'} and $prop->{'format'} eq "password"
841 52 25 2 $prop->{'format'} and $prop->{'format'} eq "password"
867 55 28 60 !exists $item->{$_} && exists $props->{$_}{'default'}
917 69 0 5 &blessed($maybe_route) && $maybe_route->isa('Mojolicious::Routes::Route')

or 2 conditions

line l !l condition
671 0 53 $config->{'model'} // "Yancy::Model"
783 16 35 $config->{'editor'} // {}
818 459 4 copy_inline_refs($c->yancy->backend->schema, "/$name") || (return undef)

or 3 conditions

line l !l&&r !l&&!r condition
642 21 28 5 $config->{'read_schema'} //= !exists $config->{'openapi'}
650 1 0 4 $config->{'schema'} || $config->{'read_schema'}
656 47 0 6 $config->{'schema'} || $config->{'openapi'}{'definitions'}
775 35 16 0 not exists $config->{'editor'} or defined $config->{'editor'}
792 0 4 0 not $data or ref $data