Branch Coverage

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


line true false branch
37 2 0 if (my $fix = $schema->{'fix'})
52 0 2 if ($setting->{'title'} or $setting->{'description'})
55 0 0 if $setting->{$key}
61 0 2 if ($bag->can('cql_mapping') and my $indexes = $bag->cql_mapping->{'indexes'})
88 7 2 if ($operation eq 'explain') { }
2 0 elsif ($operation eq 'searchRetrieve') { }
118 2 0 if (@{$response->diagnostics;})
123 0 0 unless ($schema)
132 0 0 if ($setting->{'cql_filter'})
140 0 0 if ($limit > $maximum_limit)
146 0 0 unless $setting->{'default_search_params'}
152 0 0 unless (my $hits = eval {
154 0 0 if ($e =~ /^cql error/)
169 0 0 $fix ? :