blib/lib/Morris/Plugin.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
new_from_config
2.0
register
2.0
BEGIN
2.0
CRAP 2.0
1 package Morris::Plugin;
2 use Moose;
3 use namespace::clean -except => qw(meta);
4  
5 has connection => (
6 is => 'ro',
7 isa => 'Morris::Connection',
8 writer => '_connection'
9 );
10  
11 sub new_from_config {
12 my ($class, $args) = @_;
13 return $class->new(%$args);
14 }
15  
16 sub register {
17 my ($self, $conn) = @_;
18 $self->_connection( $conn );
19 warn "registered $self";
20 }
21  
22 __PACKAGE__->meta->make_immutable();
23  
24 1;
25  
26 __END__