dbMan/Lang.pm

filter: Statementstmt 70.8% 17 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 2 totaltotal 66.6% 22 / 33 CC 1 SCAR 2.5
CC
1
Cov
71%
new
2.0
str
2.0
BEGIN
1.0
CRAP 1.3
« dbMan/Extension.pm ↑ Summary
1 package DBIx::dbMan::Lang;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use locale;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use POSIX;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Locale::gettext;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 our $VERSION = '0.04';
10  
11 2 1;
12  
13 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
14 0 my $class = shift;
15 0 my $obj = bless { @_ }, $class;
16  
17 0 $obj->{ gettext } = Locale::gettext->domain( 'dbman' );
18 0 return $obj;
19 }
20  
21 0 ▶sub str {
Subroutine str: not called CC=1 SCAR=6.9
Pod undocumented
22 0 my $obj = shift;
23 0 my $str = join '',@_;
24  
25 0 return $obj->{ gettext }->get( $str );
26 }
« dbMan/Extension.pm ↑ Summary