Branch Coverage

blib/lib/CatalystX/QueryModel/DoesQueryModel.pm
Criterion Covered Total %
branch 26 56 46.4


line true false branch
15 9 6 ref $class_or_self ? :
16 6 9 if (@data)
21 8 7 if $class_or_self->can("namespace_metadata")
26 0 9 $self->content_type ? :
31 9 0 ref $class_or_self ? :
32 0 9 if $ct
34 0 9 if ($class_or_self->can("content_type_metadata"))
42 0 60 ref $class_or_self ? :
43 60 0 if (defined $data_proto)
44 60 0 (ref $data_proto || '') eq 'HASH' ? :
45 0 60 unless exists $data->{'name'}
52 18 0 ref $class_or_self ? :
55 0 0 (ref $data[0] || '') eq 'HASH' ? :
56 0 0 unless exists $data->{'name'}
60 18 0 if $class_or_self->can("property_data_metadata")
101 0 9 exists $args{'current_parser'} ? :
103 0 9 if exists $args{'context'}
111 0 0 if not $ct and $c->req->method eq "GET"
112 0 0 if $self->get_content_in eq "query"
118 0 9 if exists $args{'current_namespace'}
132 19 4 if (my $predicate = $meta->{'attr_predicate'})
133 19 0 if ($meta->{'omit_empty'})
134 6 13 unless $self->$predicate
139 0 17 if ((ref $value || '') eq 'ARRAY') { }
0 17 elsif (&Scalar::Util::blessed($value) and $value->can('nested_params')) { }
142 0 0 if (&Scalar::Util::blessed($v)) { }
144 0 0 if keys %$params
153 0 0 unless keys %$params