Catmandu/Plugin/Readonly/Droppable.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Catmandu/IdGenerator.pm ↑ Summary Catmandu/Sane.pm »
1 package Catmandu::Plugin::Readonly::Droppable;
2  
3 1 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶around drop => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
7 1 my ($orig, $self) = @_;
8 1 my $pkg = ref($self);
9 1 $self->log->warn("trying to drop a readonly store");
10 1 my $err = Catmandu::NotImplemented->new("$pkg is readonly");
11 1 return undef, $err;
12 1 };
13  
14 1 1;
« Catmandu/IdGenerator.pm ↑ Summary Catmandu/Sane.pm »