Branch Coverage

blib/lib/Mojolicious/Service.pm
Criterion Covered Total %
branch 0 98 0.0


line true false branch
11 0 0 unless $self->models and $self->models->{$name}
19 0 0 if $self->parent
29 0 0 unless $obj and $obj->{'object'}
39 0 0 unless $obj and $obj->{'rows'}
49 0 0 unless $obj and $obj->{'rows'}
59 0 0 unless $obj and $obj->{'rows'}
83 0 0 if ($method =~ /^mcreate_(.+)$/)
87 0 0 unless $obj and $obj->{'object'}
88 0 0 $pkg->isa('Mojolicious::Service') ? :
93 0 0 if ($method =~ /^medit_(.+)$/)
97 0 0 unless $obj and $obj->{'rows'}
98 0 0 $pkg->isa('Mojolicious::Service') ? :
103 0 0 if ($method =~ /^mremove_(.+)$/)
107 0 0 unless $obj and $obj->{'rows'}
108 0 0 $pkg->isa('Mojolicious::Service') ? :
113 0 0 if ($method =~ /^msremove_(.+)$/)
117 0 0 unless $obj and $obj->{'rows'}
118 0 0 $pkg->isa('Mojolicious::Service') ? :
122 0 0 if ($method =~ /^mcount_(.+)$/)
129 0 0 if ($method =~ /^get_by_(.+)$/)
134 0 0 unless $model
137 0 0 unless $obj and $$obj{$model->name}
138 0 0 $field eq 'id' ? :
0 0 $pkg->isa('Mojolicious::Service') ? :
142 0 0 if ($method =~ /^get_(.+)_by_(.+)$/)
147 0 0 unless $model
150 0 0 unless $obj and $$obj{$model->name}
151 0 0 $field eq 'id' ? :
0 0 $pkg->isa('Mojolicious::Service') ? :
156 0 0 if ($method =~ /^remove_by_(.+)$/)
161 0 0 unless $model
164 0 0 unless $obj and defined $obj->{'rows'}
165 0 0 $pkg->isa('Mojolicious::Service') ? :
169 0 0 if ($method =~ /^remove_(.+)_by_(.+)$/)
174 0 0 unless $model
177 0 0 unless $obj and defined $obj->{'rows'}
178 0 0 $pkg->isa('Mojolicious::Service') ? :
184 0 0 if ($method =~ /^sremove_by_(.+)$/)
189 0 0 unless $model
192 0 0 unless $obj and defined $obj->{'rows'}
193 0 0 $pkg->isa('Mojolicious::Service') ? :
197 0 0 if ($method =~ /^sremove_(.+)_by_(.+)$/)
202 0 0 unless $model
205 0 0 unless $obj and defined $obj->{'rows'}
206 0 0 $pkg->isa('Mojolicious::Service') ? :
211 0 0 if ($method =~ /^count_by_(.+)$/)
216 0 0 unless $model
223 0 0 if ($method =~ /^count_(.+)_by_(.+)$/)
228 0 0 unless $model