Branch Coverage

blib/lib/MyLibrary/Facet.pm
Criterion Covered Total %
branch 6 42 14.2


line true false branch
157 0 1 if ($opts{'id'}) { }
0 1 elsif ($opts{'name'}) { }
161 0 0 if (ref $rv eq 'HASH') { }
170 0 0 if (ref $rv eq 'HASH') { }
198 1 1 if ($facet_name)
212 1 1 if ($facet_note)
235 0 0 if ($self->facet_id) { }
239 0 0 if ($return > 1 or not $return)
247 0 0 if ($return > 1 or not $return)
262 0 0 if ($$self{'facet_id'})
268 0 0 if (scalar @{$term_ids;} >= 1)
278 0 0 if ($rv != 1)
296 0 0 if (defined $opts{'sort'})
297 0 0 if ($opts{'sort'} eq 'name')
301 0 0 if (defined $opts{'field'} and defined $opts{'value'})
304 0 0 if ($field eq 'name') { }
0 0 elsif ($field eq 'description') { }
311 0 0 if ($limit_clause)
314 0 0 if ($sort_clause)
335 0 0 if (defined $opts{'sort'})
349 0 0 if ($sort and $sort eq 'name')