Catmandu/Plugin/Readonly/Searchable.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Catmandu::Plugin::Readonly::Searchable;
2  
3 use Catmandu::Sane;
4 use Moo::Role;
5  
6 around delete_by_query => sub {
7 my ($orig, $self) = @_;
8 my $pkg = ref($self);
9 $self->log->warn("trying to delete from readonly store");
10 my $err = Catmandu::NotImplemented->new("$pkg is readonly");
11 return undef, $err;
12 };
13  
14 1;