Component/Attribute/Method.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 20 CC 2 SCAR 12.8
CC
2
Cov
0%
register
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 package Class::Component::Attribute::Method;
2  
3 use strict;
4 use warnings;
5 use base 'Class::Component::Attribute';
6  
7 sub register {
8 my($class, $plugin, $c, $method, $value) = @_;
9  
10 if ($value) {
11 $c->register_method( $value => { plugin => $plugin, method => $method } );
12 } else {
13 $c->register_method( $method => $plugin );
14 }
15 }
16  
17 1;