blib/lib/Data/Faker/MetaSyntactic.pm

filter: Statementstmt 97.6% 41 / 42 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 91.6% 11 / 12 Podpod n/a totaltotal 96.3% 52 / 54 CC 1 SCAR 0.0
CC
1
Cov
98%
__ANON__
1.0
__ANON__
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary /home/cpancover/.cpan/CPAN/MyConfig.pm »
1 package Data::Faker::MetaSyntactic;
2 1 $Data::Faker::MetaSyntactic::VERSION = '1.000';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Data::Faker;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 our @ISA = qw( Data::Faker );
8  
9 1 ▶use Acme::MetaSyntactic ();
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 my $meta = Acme::MetaSyntactic->new('any');
12  
13 # register default plugin
14 0 ▶__PACKAGE__->register_plugin( meta => sub { $meta->name() } );
Subroutine __ANON__: not called CC=1 SCAR=0.2
Subroutine __ANON__: called CC=1 SCAR=0.2
15  
16 # record one plugin per existing theme
17 1 for my $theme ( $meta->themes ) {
18 __PACKAGE__->register_plugin(
19 104 ▶ "meta_$theme" => sub { $meta->name($theme) } );
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
20 }
21  
22 1 1;
23  
24 __END__
↑ Summary /home/cpancover/.cpan/CPAN/MyConfig.pm »