| 1 | 9 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||
| 2 | 9 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||||||||||
| 4 | package App::Embra::Role::FileGatherer; | ||||||||||||||||||||||||||||||||||||
| 5 | 9 | $App::Embra::Role::FileGatherer::VERSION = '0.001'; # TRIAL | |||||||||||||||||||||||||||||||||||
| 6 | # ABSTRACT: something that adds file to your site | ||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||
| 8 | 9 | ▶ | use Method::Signatures; | ||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||
| 9 | 9 | ▶ | use Moo::Role; | ||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||
| 12 | 9 | with 'App::Embra::Role::Plugin'; | |||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||||
| 14 | 9 | requires 'gather_files'; | |||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||||||||
| 17 | 9 | ▶ | method add_file( App::Embra::File $file ) { | ||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.2
Subroutine
add_file: called CC=5 SCAR=16.6
Branch: 3 branches
Condition66%2/3
$Method::Signatures::mutc{"cache"}{"App::Embra::File"} ||= "Method::Signatures"->_make_constraint("App::Embra::File")
MC/DC0%0/2
$Method::Signatures::mutc{"cache"}{"App::Embra::File"} ||= "Method::Signatures"->_make_constraint("App::Embra::File")
$Method::Signatures::mutc{"cache"}{"App::Embra::File"}
"Method::Signatures"->_make_constraint("App::Embra::File")
Truth table66%2/3
A ||= B
A= $Method::Signatures::mutc{"cache"}{"App::Embra::File"}B= "Method::Signatures"->_make_constraint("App::Embra::File")
| |||||||||||||||||||||||||||||||||||||
| 18 | 21 | $self->debug( "gathered $file" ); | |||||||||||||||||||||||||||||||||||
| 19 | 21 | push @{ $self->embra->files }, $file; | |||||||||||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||||||||||
| 22 | 9 | 1; | |||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||
| 24 | __END__ | ||||||||||||||||||||||||||||||||||||