Condition Coverage

blib/lib/Yancy/Controller/Yancy.pm
Criterion Covered Total %
condition 70 93 75.2


and 3 conditions

line !l l&&!r l&&r condition
725 53 19 5 $props->{$key}{'format'} and $props->{$key}{'format'} eq "password"
750 24 14 4 $c->accepts("html") and $c->validation->csrf_protect->has_error("csrf_token")
778 287 13 5 $allowed_props and $data->{$key}
13 4 1 $allowed_props and $data->{$key} and not grep({$_ eq $key;} @$allowed_props)
783 273 15 1 $format eq "filepath" and my $upload = $c->param($key)
784 2 13 1 exists $data->{$key} and !defined($data->{$key}) || $data->{$key} eq ''
993 9 6 2 $c->accepts("html") and $c->validation->csrf_protect->has_error("csrf_token")
1286 3 0 0 $value && $value ne 'false'
1302 52 0 1 $c->param("\$match") and $c->param("\$match") eq "any"

or 2 conditions

line l !l condition
226 538 6 $self->stash('schema') || $self->stash('collection') || die('Schema name not defined in stash')
245 115 34 $self->stash($id_field) // undef
257 210 1007 $props->{$_}{'format'} // ""
413 52 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
422 1 51 $c->stash("before_render") // []
529 24 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
533 1 23 $c->stash("before_render") // []
714 9 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
755 4 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
781 88 217 $props->{$key}{'format'} // ""
801 1 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
812 3 34 $c->stash("before_write") // []
820 37 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
855 3 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
1008 2 13 $c->stash("before_delete") // []
1164 0 1 $c->stash("before_render") // []
1233 1 0 $c->stash("interval") // 10
1244 0 51 ($c->param("\$limit") // $c->stash->{'limit'}) // 10
1247 13 39 $c->stash->{'page'} // 1
1274 23 0 $props->{$key}{'type'} || 'string'
1321 3 51 $filter // {}

or 3 conditions

line l !l&&r !l&&!r condition
228 249 289 0 $self->stash("model") // $self->yancy->model
726 9 56 7 $c->param($key) // $item->{$key}
771 18 20 0 eval { do { $c->req->json } } || $c->req->params->to_hash
784 0 1 13 !defined($data->{$key}) || $data->{$key} eq ''
829 2 0 0 $data->{$field} || $id->{$field}
833 22 0 0 $data->{$id_field} || $id
1244 4 0 51 $c->param("\$limit") // $c->stash->{'limit'}
1256 6 1 0 $_->[1] // $_->[0]