Branch Coverage

blib/lib/CatalystX/RequestModel/ContentBodyParser.pm
Criterion Covered Total %
branch 35 44 79.5


line true false branch
22 2 9 if $a eq ""
23 2 7 if $b eq ""
33 6 1 if (exists $context->{$pointer}) { }
48 26 130 unless exists $context->{$data_name}
50 6 124 if (not $indexed and $attr_rules->{'indexed'}) { }
16 108 elsif (my $nested_model = $attr_rules->{'model'}) { }
51 0 6 if $attr_rules->{'always_array'} or ""
54 4 2 unless ((ref $context->{$data_name} || '') eq "ARRAY")
55 4 0 if ((ref $context->{$data_name} || '') eq 'HASH') { }
72 6 0 if (@response_data) { }
0 0 elsif (not $attr_rules->{'omit_empty'}) { }
81 0 16 if ($attr_rules->{'expand'} || '') eq "JSON"
82 0 16 if $attr_rules->{'boolean'} or ""
101 2 106 if ($key_rules->{'expand'} || '') eq "JSON"
103 2 106 if ($key_rules->{'always_array'}) { }
77 29 elsif ($key_rules->{'flatten'}) { }
109 2 106 if $key_rules->{'boolean'} or ""
115 2 0 unless (ref $value || '') eq "ARRAY"
121 6 71 if (ref $value || '') eq "ARRAY"
127 1 1 $value ? :
132 7 9 if ($nested_model =~ /^::/)
152 0 2 unless (eval {