Branch Coverage

blib/lib/Dancer/Plugin/Catmandu/SRU.pm
Criterion Covered Total %
branch 7 28 25.0


line true false branch
36 1 0 if (my $fix = $schema->{'fix'})
51 0 1 if ($setting->{'title'} or $setting->{'description'})
54 0 0 if $setting->{$key}
60 0 1 if ($bag->can('cql_mapping') and my $indexes = $bag->cql_mapping->{'indexes'})
87 3 1 if ($operation eq 'explain') { }
1 0 elsif ($operation eq 'searchRetrieve') { }
117 1 0 if (@{$response->diagnostics;})
122 0 0 unless ($schema)
131 0 0 if ($setting->{'cql_filter'})
139 0 0 if ($limit > $maximum_limit)
145 0 0 unless $setting->{'default_search_params'}
151 0 0 unless (my $hits = eval { do { $bag->search(%{{} unless $setting->{'default_search_params'};}, 'cql_query', $cql, 'sru_sortkeys', $request->sortKeys, 'limit', $limit, 'start', $first - 1) } })
153 0 0 if ($e =~ /^cql error/)
168 0 0 $fix ? :