lib/Bio/Roary/CommandLine/Common.pm

filter: Statementstmt 65.6% 21 / 32 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 55.5% 5 / 9 Podpod 0.0% 0 / 1 totaltotal 59.0% 26 / 44 CC 3 SCAR 14.5
CC
3
Cov
62%
__ANON__
12.0
run
2.0
usage_text
2.0
CRAP 4.3
« lib/Bio/Roary/FilterFullClusters.pm ↑ Summary lib/Bio/Roary/ClustersRole.pm »
1 package Bio::Roary::CommandLine::Common;
2 # ABSTRACT: Common command line settings
3 29 $Bio::Roary::CommandLine::Common::VERSION = '3.13.0';
4  
5 29 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 29 ▶use FindBin;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 29 ▶use Log::Log4perl qw(:easy);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 29 has 'logger' => ( is => 'ro', lazy => 1, builder => '_build_logger');
10 29 has 'version' => ( is => 'rw', isa => 'Bool', default => 0 );
11  
12 sub _build_logger
13 5 ▶{
Subroutine _build_logger: called CC=1 SCAR=0.0
14 5 my ($self) = @_;
15 5 Log::Log4perl->easy_init($ERROR);
16 5 my $logger = get_logger();
17 5 return $logger;
18 }
19  
20  
21 0 ▶sub run {
Subroutine run: not called CC=1 SCAR=6.9
22 0 my ($self) = @_;
23 }
24  
25 0 ▶sub usage_text {
Subroutine usage_text: not called CC=1 SCAR=6.9
Pod undocumented
26 0 my ($self) = @_;
27 0 return "Usage text";
28 }
29  
30 0 ▶sub _version {
Subroutine _version: not called CC=1 SCAR=6.9
31 0 my ($self) = @_;
32 0 return "x.y.z\n";
33 }
34  
35  
36 # add our included binaries to the END of the PATH
37 0 ▶before 'run' => sub {
Subroutine __ANON__: not called CC=3 SCAR=24.8
38 0 my ($self) = @_;
39 0 my $OPSYS = $^O;
40 0 my $BINDIR = "$FindBin::RealBin/../binaries/$OPSYS";
41  
42 0 for my $dir ($BINDIR, $FindBin::RealBin) {
43 0 ▶ if (-d $dir) {
Branch: 1 branch
BranchTrueFalseTotal
if (-d $dir) 0 0 0
44 0 $ENV{PATH} .= ":$dir";
45 }
46 }
47 29 };
48  
49 29 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
50 29 1;
51  
52 __END__
« lib/Bio/Roary/FilterFullClusters.pm ↑ Summary lib/Bio/Roary/ClustersRole.pm »