Branch Coverage

lib/CatalystX/Resource/Controller/Resource.pm
Criterion Covered Total %
branch 54 70 77.1


line true false branch
107 16 18 if ($mode eq 'list') { }
6 12 elsif ($mode eq 'show') { }
6 6 elsif ($mode eq 'show_parent') { }
6 0 elsif ($mode eq 'show_parent_list') { }
108 11 5 unless $action eq 'create'
120 2 4 if ($action eq 'create') { }
2 2 elsif ($action eq 'delete') { }
2 0 elsif ($action eq 'edit') { }
144 3 3 if ($self->has_parent) { }
149 1 2 if ($action eq 'create') { }
2 0 elsif ($action eq 'edit' or $action eq 'delete') { }
177 3 3 if ($self->has_parent) { }
182 1 2 if ($action eq 'create') { }
2 0 elsif ($action eq 'edit' or $action eq 'delete') { }
210 12 42 if ($action eq 'not_found') { }
11 31 elsif ($action eq 'create') { }
13 18 elsif ($action eq 'update') { }
10 8 elsif ($action eq 'delete') { }
4 4 elsif ($action eq 'move_next') { }
2 2 elsif ($action eq 'move_previous') { }
1 1 elsif ($action eq 'move_to') { }
1 0 elsif ($action eq 'move_to_undef') { }
211 0 12 $c->can('loc') ? :
216 0 11 $c->can('loc') ? :
221 0 13 $c->can('loc') ? :
226 0 10 $c->can('loc') ? :
231 0 4 $c->can('loc') ? :
236 0 2 $c->can('loc') ? :
241 0 1 $c->can('loc') ? :
246 0 1 $c->can('loc') ? :
258 42 0 if ($resource->can($identifier) and defined $resource->$identifier)
266 0 0 $resource->can('id') ? :
281 62 122 if ($self->has_parent) { }
289 122 62 if $self->has_prefetch
299 121 12 if ($resource) { }