Branch Coverage

blib/lib/Wurm/Grub/REST.pm
Criterion Covered Total %
branch 32 60 53.3


line true false branch
19 0 1 unless 'HASH' eq ref $map
26 0 0 if defined $node
38 0 1 unless 'CODE' eq ref $one
39 0 1 unless 'CODE' eq ref $all
44 2 2 defined $meal->{'grit'}{'id'} ? :
47 2 2 defined $cast ? :
54 0 1 unless 'CODE' eq ref $post
60 0 0 if defined $meal->{'grit'}{'id'}
63 0 0 if defined $cast
67 0 0 unless defined $meal->{'grit'}{'id'}
70 0 0 if '/' ne substr($uri, length($uri) - 1, 1)
80 0 1 unless 'CODE' eq ref $new
81 0 1 unless 'CODE' eq ref $old
86 2 2 $flag ? :
90 2 2 if defined $cast
94 1 1 unless defined $meal->{'grit'}{'id'}
97 1 0 if '/' ne substr($uri, length($uri) - 1, 1)
100 1 0 $flag ? :
107 0 1 unless 'CODE' eq ref $one
113 2 2 if (defined $meal->{'grit'}{'id'}) { }
115 0 2 unless defined $meal->{'grit'}{'id'}
116 1 1 unless defined $cast
119 2 0 unless defined $all
121 0 0 unless defined $cast
130 0 1 unless 'CODE' eq ref $one
136 2 2 if (defined $meal->{'grit'}{'id'}) { }
138 0 2 unless defined $meal->{'grit'}{'id'}
139 1 1 unless defined $cast
142 2 0 unless defined $all
144 0 0 unless defined $cast