Dash/Dependencies.pm untested

filter: Statementstmt 0.0% 0 / 34 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 52 CC 4 SCAR 13.9
CC
4
Cov
0%
Output
6.0
Input
6.0
State
6.0
CRAP 4.0
1 package Dash::Dependencies;
2  
3 use warnings;
4 use strict;
5 use utf8;
6  
7 use Dash::Dependencies::Output;
8 use Dash::Dependencies::Input;
9 use Dash::Dependencies::State;
10  
11 sub Output {
12 shift;
13 my @params = @_;
14 if ( scalar @_ == 2 ) {
15 @params = ( component_id => $_[0], component_property => $_[1] );
16 }
17 return Dash::Dependencies::Output->new(@params);
18 }
19  
20 sub Input {
21 shift;
22 my @params = @_;
23 if ( scalar @_ == 2 ) {
24 @params = ( component_id => $_[0], component_property => $_[1] );
25 }
26 return Dash::Dependencies::Input->new(@params);
27  
28 }
29  
30 sub State {
31 shift;
32 my @params = @_;
33 if ( scalar @_ == 2 ) {
34 @params = ( component_id => $_[0], component_property => $_[1] );
35 }
36 return Dash::Dependencies::State->new(@params);
37 }
38  
39 1;
40  
41 __END__