| 1 | package Git::Gitalist::HasUtils; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use Moose::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 2 | ▶ | use Method::Signatures; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 2 | ▶ | use Git::Gitalist::Util; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 0 | ▶ | method BUILD {} | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
Subroutine
BUILD: not called CC=2 SCAR=11.6
Branch: 1 branch
| |||||||||||
| 10 | |||||||||||
| 11 | 2 | ▶ | after BUILD => method(...) { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 12 | # Force value build | ||||||||||
| 13 | 2 | $self->meta->get_attribute('_util')->get_read_method_ref->($self); | |||||||||
| 14 | 2 | }; | |||||||||
| 15 | |||||||||||
| 16 | 2 | has _util => ( | |||||||||
| 17 | isa => 'Git::Gitalist::Util', | ||||||||||
| 18 | lazy => 1, | ||||||||||
| 19 | is => 'bare', | ||||||||||
| 20 | builder => '_build_util', | ||||||||||
| 21 | handles => [qw( | ||||||||||
| 22 | run_cmd | ||||||||||
| 23 | run_cmd_fh | ||||||||||
| 24 | run_cmd_list | ||||||||||
| 25 | get_gpp_object | ||||||||||
| 26 | gpp | ||||||||||
| 27 | )], | ||||||||||
| 28 | traits => ['DoNotSerialize'] | ||||||||||
| 29 | ); | ||||||||||
| 30 | |||||||||||
| 31 | 0 | ▶ | method _build_util { confess(shift() . " cannot build _util") } | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=3.1
Subroutine
_build_util: not called CC=2 SCAR=12.4
Branch: 1 branch
| |||||||||||
| 32 | |||||||||||
| 33 | 2 | 1; | |||||||||
| 34 | |||||||||||
| 35 | __END__ | ||||||||||