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
713 53 19 5 $props->{$key}{'format'} and $props->{$key}{'format'} eq "password"
738 24 14 4 $c->accepts("html") and $c->validation->csrf_protect->has_error("csrf_token")
766 287 13 5 $allowed_props and $data->{$key}
13 4 1 $allowed_props and $data->{$key} and not grep({$_ eq $key;} @$allowed_props)
771 273 15 1 $format eq "filepath" and my $upload = $c->param($key)
772 2 13 1 exists $data->{$key} and !defined($data->{$key}) || $data->{$key} eq ''
981 9 6 2 $c->accepts("html") and $c->validation->csrf_protect->has_error("csrf_token")
1270 3 0 0 $value && $value ne 'false'
1286 51 0 1 $c->param("\$match") and $c->param("\$match") eq "any"

or 2 conditions

line l !l condition
226 532 6 $self->stash('schema') || $self->stash('collection') || die('Schema name not defined in stash')
245 114 34 $self->stash($id_field) // undef
257 218 1032 $props->{$_}{'format'} // ""
409 51 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
418 1 50 $c->stash("before_render") // []
517 23 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
521 1 22 $c->stash("before_render") // []
702 9 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
743 4 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
769 88 217 $props->{$key}{'format'} // ""
789 1 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
800 3 34 $c->stash("before_write") // []
808 37 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
843 3 0 $c->stash('schema') || $c->stash('collection') || die('Schema name not defined in stash')
996 2 13 $c->stash("before_delete") // []
1152 0 1 $c->stash("before_render") // []
1221 1 0 $c->stash("interval") // 10
1232 0 50 ($c->param("\$limit") // $c->stash->{'limit'}) // 10
1235 13 38 $c->stash->{'page'} // 1
1258 23 0 $props->{$key}{'type'} || 'string'
1305 3 50 $filter // {}

or 3 conditions

line l !l&&r !l&&!r condition
228 249 283 0 $self->stash("model") // $self->yancy->model
714 9 56 7 $c->param($key) // $item->{$key}
759 18 20 0 eval { do { $c->req->json } } || $c->req->params->to_hash
772 0 1 13 !defined($data->{$key}) || $data->{$key} eq ''
817 2 0 0 $data->{$field} || $id->{$field}
821 22 0 0 $data->{$id_field} || $id
1232 4 0 50 $c->param("\$limit") // $c->stash->{'limit'}
1244 6 1 0 $_->[1] // $_->[0]