Branch Coverage

blib/lib/Catalyst/ActionRole/QueryParameter.pm
Criterion Covered Total %
branch 46 72 63.8


line true false branch
10 11 21 unless (shift())->attributes->{'QueryParam'}
27 1 23 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 10 13 if (defined $op) { }
36 0 10 unless $op =~ /^(==|eq|!=|<=|>=|>|=~|<|gt|ge|lt|le)$/i
38 0 10 unless defined $cond
44 10 2 defined $v ? :
2 8 if $op eq '=='
45 0 0 defined $v ? :
0 8 if $op eq '!='
46 0 0 defined $v ? :
0 8 if $op eq '<='
47 10 2 defined $v ? :
2 6 if $op eq '>='
48 12 2 defined $v ? :
4 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 21 11 if (my(@attrs) = $self->_resolve_query_attrs) { }
61 0 1 $_[0] eq '!' ? :
1 23 ref $_ eq 'ARRAY' ? :
69 1 23 if ($attr_param =~ /=/)
73 0 24 if ($default and $not eq '?')
79 24 56 unless (defined $value)
85 2 78 $not eq '!' ? :