Branch Coverage

lib/CatalystX/Eta/Controller/REST.pm
Criterion Covered Total %
branch 2 12 16.6


line true false branch
24 0 14 if (scalar @{$c->error;})
29 0 0 if (ref $an_error eq 'DBIx::Class::Exception' and $an_error->{'msg'} =~ /duplicate key value violates unique constraint/) { }
0 0 elsif (ref $an_error eq 'DBIx::Class::Exception' and $an_error->{'msg'} =~ /is not present/) { }
0 0 elsif (ref $an_error eq 'HASH' and $an_error->{'error_code'}) { }
0 0 elsif (ref $an_error eq 'REF' and ref $$an_error eq 'ARRAY' and @$$an_error == 2) { }
78 0 9 if ref $c->stash->{'rest'} eq 'HASH' and not exists $c->stash->{'rest'}{'error'} and exists $c->stash->{'rest'}{'form_error'}