Branch Coverage

blib/lib/Catalyst/ActionRole/QueryParameter.pm
Criterion Covered Total %
branch 41 66 62.1


line true false branch
10 11 18 unless (shift())->attributes->{'QueryParam'}
27 1 20 if (defined $cond and length $cond and not defined $op)
28 0 1 unless $self->can('resolve_type_constraint')
31 0 1 unless $tc
35 9 11 if (defined $op) { }
36 0 9 unless $op =~ /^(==|eq|!=|<=|>=|>|=~|<|gt|ge|lt|le)$/i
38 0 9 unless defined $cond
44 10 2 defined $v ? :
2 7 if $op eq '=='
45 0 0 defined $v ? :
0 7 if $op eq '!='
46 0 0 defined $v ? :
0 7 if $op eq '<='
47 10 2 defined $v ? :
2 5 if $op eq '>='
48 11 2 defined $v ? :
3 2 if $op eq '>'
49 0 0 defined $v ? :
0 2 if $op eq '<'
50 3 0 defined $v ? :
1 1 if $op eq '=~'
51 0 0 defined $v ? :
0 1 if $op eq 'ge'
52 0 0 defined $v ? :
0 1 if $op eq 'lt'
53 0 0 defined $v ? :
0 1 if $op eq 'le'
54 4 1 defined $v ? :
1 0 if $op eq 'eq'
59 18 11 if (my(@attrs) = $self->_resolve_query_attrs) { }
61 0 1 $_[0] eq '!' ? :
1 20 ref $_ eq 'ARRAY' ? :
70 2 74 $not ? :