Training/Plugin.pm

filter: Statementstmt 73.9% 17 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 73.3% 22 / 30 CC 1 SCAR 1.5
CC
1
Cov
74%
file
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Training.pm ↑ Summary
1 package Bot::Training::Plugin;
2 1 our $AUTHORITY = 'cpan:AVAR';
3 1 $Bot::Training::Plugin::VERSION = '0.06';
4 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use File::ShareDir qw< :ALL >;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use File::Spec::Functions qw< catdir catfile >;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub file {
11 0 ▶ my ($self) = @_;
Subroutine file: not called CC=1 SCAR=6.9
Pod undocumented
12  
13 0 my $class = ref $self;
14 0 my ($last) = $class =~ m[::([^:]+)$];
15 0 $class =~ s[::][-]g;
16  
17 0 my $file = dist_file( $class, lc($last) . '.trn');
18  
19 0 return $file;
20 }
21  
22 1 __PACKAGE__->meta->make_immutable;
« Training.pm ↑ Summary