Agent/Monitors.pm

filter: Statementstmt 66.6% 12 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 3 / 9 Podpod 0.0% 0 / 5 totaltotal 46.8% 15 / 32 CC 1 SCAR 3.0
CC
1
Cov
67%
is_module_loaded
2.0
start_monitoring
2.0
stop_monitoring
2.0
CRAP 1.3
« Agent/Frameworks.pm ↑ Summary Agent/Output.pm »
1 package PerlGuard::Agent::Monitors;
2 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use PerlGuard::Agent::LexWrap;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Module::Loaded();
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 has agent => ( is => 'ro', required => 1, weak_ref => 1);
7 0 ▶has overrides => ( is => 'rw', default => sub { [] });
Subroutine __ANON__: not called CC=1 SCAR=1.2
8  
9 0 ▶sub is_module_loaded {
Subroutine is_module_loaded: not called CC=1 SCAR=6.9
Pod undocumented
10 0 my $self = shift;
11 0 my $module_name = shift;
12  
13 0 Module::Loaded::is_loaded($module_name)
14  
15 }
16  
17 0 ▶sub start_monitoring {
Subroutine start_monitoring: not called CC=1 SCAR=6.9
Pod undocumented
18 0 die "Implement in sublass"
19 }
20  
21 0 ▶sub stop_monitoring {
Subroutine stop_monitoring: not called CC=1 SCAR=6.9
Pod undocumented
22 0 die "Implement in subclass"
23 }
24  
25 0 ▶sub inform_agent_of_event {
Subroutine inform_agent_of_event: not called CC=1 SCAR=0.0
Pod undocumented
26  
27 }
28  
29 0 ▶sub die_unless_suitable {
Subroutine die_unless_suitable: not called CC=1 SCAR=0.0
Pod undocumented
30
31 }
32  
33 1 1;
« Agent/Frameworks.pm ↑ Summary Agent/Output.pm »