Chado/Factory/FixtureLoader.pm

filter: Statementstmt 95.6% 22 / 23 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 93.9% 31 / 33 CC 3 SCAR 6.2
CC
3
Cov
96%
get_instance
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« Chado/DBManager/Testpg.pm ↑ Summary Chado/Factory/DBManager.pm »
1 package Test::Chado::Factory::FixtureLoader;
2 {
3 14 $Test::Chado::Factory::FixtureLoader::VERSION = 'v4.1.1';
4 }
5  
6 14 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 14 ▶use Module::Load qw/load/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 14 ▶use Module::Path qw/module_path/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 14 ▶use Module::Runtime qw/compose_module_name/;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 6 ▶sub get_instance {
Subroutine get_instance: called CC=3 SCAR=11.0
Pod undocumented
12 6 my ($class,$arg) = @_;
13 6 ▶ die "need a type of fixture loader\n" if !$arg;
Branch: 1 branch
BranchTrueFalseTotal
unless $arg 1 5 6
14
15 5 $arg = ucfirst lc($arg);
16 5 my $module = compose_module_name('Test::Chado::FixtureLoader',$arg);
17 5 my $module_path = module_path($module);
18 5 ▶ die "could not find $module\n" if not defined $module_path;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $module_path 1 4 5
19  
20 4 load $module;
21 0 return $module->new;
22 }
23  
24 14 1;
25  
26 __END__
« Chado/DBManager/Testpg.pm ↑ Summary Chado/Factory/DBManager.pm »