Keywords.pm

filter: Statementstmt 94.1% 16 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 2 totaltotal 84.0% 21 / 25 CC 2 SCAR 3.6
CC
2
Cov
94%
__ANON__
2.0
from
2.0
BEGIN
1.0
CRAP 1.4
« Keywords/Container.pm ↑ Summary Keywords/Found.pm »
1 package Text::Keywords;
2 2 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 $Text::Keywords::AUTHORITY = 'cpan:GETTY';
4 }
5 2 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 $Text::Keywords::VERSION = '0.900';
7 }
8 # ABSTRACT: Setup Text::Keywords::Container for analyzing some text
9  
10 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 has containers => (
13 is => 'rw',
14 0 ▶ default => sub {[]},
Subroutine __ANON__: not called CC=1 SCAR=6.9
15 2 );
16  
17 4 ▶sub from {
Subroutine from: called CC=2 SCAR=6.9
Pod undocumented
18 4 my ( $self, $primary, $secondary ) = @_;
19
20 4 my @founds;
21  
22 4 for (@{$self->containers}) {
23 8 push @founds, $_->find_keywords($primary, $secondary);
24 }
25
26 4 @founds = $self->modify_founds(@founds);
27  
28 4 return @founds;
29 }
30  
31 4 ▶sub modify_founds {
Subroutine modify_founds: called CC=1 SCAR=0.0
Pod undocumented
32 4 my ( $self, @founds ) = @_;
33 4 return @founds;
34 }
35  
36 2 1;
37  
38 __END__
« Keywords/Container.pm ↑ Summary Keywords/Found.pm »