blib/lib/Yeb/Plugin/Locale/Simple.pm

filter: Statementstmt 61.1% 11 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 1 totaltotal 53.8% 14 / 26 CC 3 SCAR 17.7
CC
3
Cov
55%
BUILD
12.0
__ANON__
2.0
BEGIN
1.0
CRAP 5.9
↑ Summary
1 package Yeb::Plugin::Locale::Simple;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $Yeb::Plugin::Locale::Simple::AUTHORITY = 'cpan:GETTY';
4 }
5 # ABSTRACT: Yeb Plugin for Locale::Simple connection
6 1 $Yeb::Plugin::Locale::Simple::VERSION = '0.002';
7 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Locale::Simple;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 has app => ( is => 'ro', required => 1 );
11  
12 1 has locales => (
13 is => 'ro',
14 predicate => 1,
15 );
16  
17 0 ▶sub BUILD {
Subroutine BUILD: not called CC=3 SCAR=24.8
Pod undocumented
18 0 my ( $self ) = @_;
19 0 for my $func (@Locale::Simple::EXPORT) {
20 0 ▶ $self->app->register_function($func,sub { &{\&{$func}}(@_) });
Subroutine __ANON__: not called CC=1 SCAR=6.9
21 };
22 0 ▶ l_dir($self->locales) if $self->has_locales;
Branch: 1 branch
BranchTrueFalseTotal
if $self->has_locales 0 0 0
23 }
24  
25 1 1;
26  
27 __END__
↑ Summary