Branch Coverage

blib/lib/HTTP/Headers/ActionPack/MediaType.pm
Criterion Covered Total %
branch 25 30 83.3


line true false branch
23 14 76 $self->type eq '*/*' && $self->params_are_empty ? :
30 2 2 unless blessed $other
31 4 0 $other->type eq $self->type && _compare_params($self->params, $other->params) ? :
38 10 0 unless blessed $other
39 6 4 $self->type_matches($other) && _compare_params($self->params, $other->params) ? :
46 12 55 unless blessed $other
47 19 48 $self->type_matches($other) && $self->params_match($other->params) ? :
55 33 44 if $other->type eq '*' or $other->type eq '*/*' or $other->type eq $self->type
56 5 39 $other->major eq $self->major && $other->minor eq '*' ? :
64 4 17 if $k eq 'q'
65 11 6 unless exists $$params{$k}
66 0 6 if $$params{$k} ne $$other{$k}
78 0 12 unless scalar @left_keys == scalar @right_keys
81 0 12 unless $left_keys[$i] eq $right_keys[$i]
82 2 10 unless $$left{$left_keys[$i]} eq $$right{$right_keys[$i]}