File Coverage

blib/lib/Text/Keywords.pm
Criterion Covered Total %
statement 5 14 35.7
branch n/a
condition n/a
subroutine 3 5 60.0
pod 0 2 0.0
total 8 21 38.1


line stmt bran cond sub pod time code
1             package Text::Keywords;
2             BEGIN {
3 2     2   57324 $Text::Keywords::AUTHORITY = 'cpan:GETTY';
4             }
5             BEGIN {
6 2     2   40 $Text::Keywords::VERSION = '0.900';
7             }
8             # ABSTRACT: Setup Text::Keywords::Container for analyzing some text
9              
10 2     2   665170 use Moo;
  2         45494  
  2         14  
11              
12             has containers => (
13             is => 'rw',
14             default => sub {[]},
15             );
16              
17             sub from {
18 0     0 0   my ( $self, $primary, $secondary ) = @_;
19            
20 0           my @founds;
21              
22 0           for (@{$self->containers}) {
  0            
23 0           push @founds, $_->find_keywords($primary, $secondary);
24             }
25            
26 0           @founds = $self->modify_founds(@founds);
27              
28 0           return @founds;
29             }
30              
31             sub modify_founds {
32 0     0 0   my ( $self, @founds ) = @_;
33 0           return @founds;
34             }
35              
36             1;
37              
38             __END__