CPI/Util.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« CPI/Role/Status.pm ↑ Summary CPI/Util/EmptyLogger.pm »
1 package Business::CPI::Util;
2 # ABSTRACT: Utilities for Business::CPI
3 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use Class::Load ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 6 our $VERSION = '0.924'; # VERSION
9  
10 17 ▶sub load_class {
Subroutine load_class: called CC=1 SCAR=0.0
Pod documented
11 17 my ($driver_name, $class_name) = @_;
12 17 return Class::Load::load_first_existing_class(
13 "Business::CPI::${driver_name}::${class_name}",
14 "Business::CPI::Base::${class_name}"
15 );
16 }
17  
18 6 1;
19  
20 __END__
« CPI/Role/Status.pm ↑ Summary CPI/Util/EmptyLogger.pm »