| 1 | package Tapper::MCP::Plugin; | ||||||||||||||||||||||||||||
| 2 | 21 | our $AUTHORITY = 'cpan:TAPPER'; | |||||||||||||||||||||||||||
| 3 | 21 | $Tapper::MCP::Plugin::VERSION = '5.0.9'; | |||||||||||||||||||||||||||
| 4 | 21 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 21 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | 21 | ▶ | use Moose::Role; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 21 | ▶ | use Class::Load 'load_class'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 13 | ▶ | sub BUILD { | ||||||||||||||||||||||||||
|
Subroutine
BUILD: called CC=4 SCAR=13.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 12 | 13 | my ($self, $config) = @_; | |||||||||||||||||||||||||||
| 13 | 13 | ▶ | if (ref($config) eq 'HASH' and | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
ref $config eq "HASH" and $config->{"plugin_conf"}
MC/DC50%1/2
ref $config eq "HASH" and $config->{"plugin_conf"}
ref $config eq "HASH"
$config->{"plugin_conf"}
Truth table66%2/3
A and B
A= ref $config eq "HASH"B= $config->{"plugin_conf"}
| |||||||||||||||||||||||||||||
| 14 | $config->{plugin_conf} | ||||||||||||||||||||||||||||
| 15 | ) { | ||||||||||||||||||||||||||||
| 16 | 1 | my $plug_conf = $config->{plugin_conf}; | |||||||||||||||||||||||||||
| 17 | 1 | foreach my $task (keys %$plug_conf) { | |||||||||||||||||||||||||||
| 18 | 1 | my $role = "Tapper::MCP::Plugin"; | |||||||||||||||||||||||||||
| 19 | 1 | $role .= "::$task"; | |||||||||||||||||||||||||||
| 20 | 1 | $role .= "::".$plug_conf->{$task}; | |||||||||||||||||||||||||||
| 21 | 1 | load_class $role; | |||||||||||||||||||||||||||
| 22 | 1 | Tapper::MCP::Plugin::Test::All->meta->apply($self); | |||||||||||||||||||||||||||
| 23 | } | ||||||||||||||||||||||||||||
| 24 | } | ||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | 1 | ▶ | sub testrun_post_process { | ||||||||||||||||||||||||||
|
Subroutine
testrun_post_process: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 30 | 1 | my ($self) = @_; | |||||||||||||||||||||||||||
| 31 | } | ||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||
| 34 | 7 | ▶ | sub console_start { | ||||||||||||||||||||||||||
|
Subroutine
console_start: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 35 | 7 | my ($self) = @_; | |||||||||||||||||||||||||||
| 36 | 7 | return 0; | |||||||||||||||||||||||||||
| 37 | } | ||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||
| 39 | |||||||||||||||||||||||||||||
| 40 | 5 | ▶ | sub console_stop { | ||||||||||||||||||||||||||
|
Subroutine
console_stop: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 41 | 5 | my ($self) = @_; | |||||||||||||||||||||||||||
| 42 | 5 | return 0; | |||||||||||||||||||||||||||
| 43 | } | ||||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||
| 45 | |||||||||||||||||||||||||||||
| 46 | 5 | ▶ | sub host_start { | ||||||||||||||||||||||||||
|
Subroutine
host_start: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 47 | 5 | my ($self) = @_; | |||||||||||||||||||||||||||
| 48 | 5 | return 0; | |||||||||||||||||||||||||||
| 49 | } | ||||||||||||||||||||||||||||
| 50 | |||||||||||||||||||||||||||||
| 51 | |||||||||||||||||||||||||||||
| 52 | |||||||||||||||||||||||||||||
| 53 | |||||||||||||||||||||||||||||
| 54 | 21 | 1; | |||||||||||||||||||||||||||
| 55 | |||||||||||||||||||||||||||||
| 56 | __END__ | ||||||||||||||||||||||||||||