Changelord/Role/ChangeTypes.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 92.0% 23 / 25 CC 2 SCAR 2.9
CC
2
Cov
95%
_build_change_types
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Changelord/Role/GitRepo.pm ↑ Summary Changelord/Role/Changelog.pm »
1 package App::Changelord::Role::ChangeTypes;
2 12 our $AUTHORITY = 'cpan:YANICK';
3 12 $App::Changelord::Role::ChangeTypes::VERSION = '0.0.2';
4 12 ▶use v5.36.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 12 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 12 ▶use feature 'try';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 12 has change_types => (
11 is => 'lazy',
12 );
13  
14 3 ▶sub _build_change_types($self) {
Subroutine _build_change_types: called CC=2 SCAR=7.0
15 12 ▶ no warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 3 ▶ return eval {
Condition50%1/2
eval { do { $self->changelog->{'change_types'} } } || [{'title', 'Features', 'level', 'minor', 'keywords', ['feat']}, {'title', 'Bug fixes', 'level', 'patch', 'keywords', ['fix']}, {'title', 'Package maintenance', 'level', 'patch', 'keywords', ['chore', 'maint', 'refactor']}, {'title', 'Statistics', 'level', 'patch', 'keywords', ['stats']}]
l!l
03
MC/DC0%0/1
eval { do { $self->changelog->{'change_types'} } } || [{'title', 'Features', 'level', 'minor', 'keywords', ['feat']}, {'title', 'Bug fixes', 'level', 'patch', 'keywords', ['fix']}, {'title', 'Package maintenance', 'level', 'patch', 'keywords', ['chore', 'maint', 'refactor']}, {'title', 'Statistics', 'level', 'patch', 'keywords', ['stats']}]
eval { do { $self->changelog->{'change_types'} } }
Truth table50%1/2
A
A= eval { do { $self->changelog->{'change_types'} } }
Aresult
11
00
17 3 $self->changelog->{change_types};
18 } || [
19 { title => 'Features' , level => 'minor', keywords => [ 'feat' ] } ,
20 { title => 'Bug fixes' , level => 'patch', keywords => [ 'fix' ] },
21 { title => 'Package maintenance' , level => 'patch', keywords => [ 'chore', 'maint', 'refactor' ] },
22 { title => 'Statistics' , level => 'patch', keywords => [ 'stats' ] },
23 ]
24 }
25  
26  
27 12 1;
28  
29 __END__
« Changelord/Role/GitRepo.pm ↑ Summary Changelord/Role/Changelog.pm »