| 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']}]
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'}
}
}
| |||||||||||||
| 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__ | ||||||||||||