blib/lib/App/SimpleScan/Plugin/Forget.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 28 / 28 CC 2 SCAR 2.5
CC
2
Cov
100%
_do_forget
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
↑ Summary
1 package App::SimpleScan::Plugin::Forget;
2  
3 4 our $VERSION = '1.02';
4  
5 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 4 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶sub pragmas {
Subroutine pragmas: called CC=1 SCAR=0.0
Pod documented
10 4 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 *{ caller() . '::_forget' } = \&_do_forget;
12 2 return [ 'forget', \&_do_forget ];
13 }
14  
15 1 ▶sub _do_forget {
Subroutine _do_forget: called CC=2 SCAR=6.9
16 1 my ( $self, $rest ) = @_;
17 1 my @names = split( /\s+/, $rest );
18 1 local $_;
19 1 $self->_delete_substitution($_) for @names;
20 }
21  
22 4 1; # Magic true value required at end of module
23 __END__
↑ Summary