Faker/Plugin/PersonUsername.pm

filter: Statementstmt 83.3% 25 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 100% 1 / 1 totaltotal 84.6% 33 / 39 CC 1 SCAR 1.2
CC
1
Cov
83%
execute
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Faker/Plugin/Person.pm ↑ Summary Faker/Plugin/PersonName.pm »
1 package Faker::Plugin::PersonUsername;
2  
3 1 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use registry;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use routines;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use Data::Object::Class;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use Data::Object::ClassHas;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 extends 'Data::Object::Plugin';
15  
16 1 our $VERSION = '1.04'; # VERSION
17  
18 # ATTRIBUTES
19  
20 1 has 'faker' => (
21 is => 'ro',
22 isa => 'ConsumerOf["Faker::Maker"]',
23 req => 1,
24 );
25  
26 # METHODS
27  
28 0 ▶method execute() {
Subroutine execute: not called CC=1 SCAR=6.9
Pod documented
29 0 my $faker = $self->faker;
30  
31 0 my $options = {
32 all_markers => 1
33 };
34  
35 0 return $faker->process(['person', 'username'], $options);
36 1 }
37  
38 1 1;
« Faker/Plugin/Person.pm ↑ Summary Faker/Plugin/PersonName.pm »