| 1 | package MooseX::Configuration::Trait::Attribute; | ||||||||||||||||||||||||||||
| 2 | 1 | ▶ | BEGIN { | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 1 | $MooseX::Configuration::Trait::Attribute::VERSION = '0.02'; | |||||||||||||||||||||||||||
| 4 | } | ||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 1 | ▶ | use Moose::Role; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 1 | ▶ | use namespace::autoclean; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | 5 | ▶ | around interpolate_class => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=4 SCAR=13.9
| |||||||||||||||||||||||||||||
| 11 | 5 | my $orig = shift; | |||||||||||||||||||||||||||
| 12 | 5 | my ( $class, $options ) = @_; | |||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 5 | ▶ | if ( exists $options->{section} || exists $options->{key} ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
exists $options->{"section"} or exists $options->{"key"}
MC/DC100%2/2
exists $options->{"section"} or exists $options->{"key"}
exists $options->{"section"}
exists $options->{"key"}
Truth table100%3/3
A or B
A= exists $options->{"section"}B= exists $options->{"key"}
| |||||||||||||||||||||||||||||
| 15 | 4 | ▶ | $options->{traits} ||= []; | ||||||||||||||||||||||||||
|
Condition50%1/2
$options->{"traits"} ||= []
MC/DC0%0/1
$options->{"traits"} ||= []
$options->{"traits"}
Truth table50%1/2
A
A= $options->{"traits"}
| |||||||||||||||||||||||||||||
| 16 | 4 | push @{ $options->{traits} }, 'MooseX::Configuration::Trait::Attribute::ConfigKey'; | |||||||||||||||||||||||||||
| 17 | } | ||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 5 | return $class->$orig($options); | |||||||||||||||||||||||||||
| 20 | 1 | }; | |||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||
| 22 | 1 | 1; | |||||||||||||||||||||||||||