Dash/DependenciesFunctions.pm untested

filter: Statementstmt 0.0% 0 / 34 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 53 CC 4 SCAR 13.5
CC
4
Cov
0%
Output
6.0
Input
6.0
State
6.0
CRAP 3.8
1 package Dash::DependenciesFunctions;
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 use Exporter::Auto;
11  
12 sub Output {
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 my @params = @_;
22 if ( scalar @_ == 2 ) {
23 @params = ( component_id => $_[0], component_property => $_[1] );
24 }
25 return Dash::Dependencies::Input->new(@params);
26  
27 }
28  
29 sub State {
30 my @params = @_;
31 if ( scalar @_ == 2 ) {
32 @params = ( component_id => $_[0], component_property => $_[1] );
33 }
34 return Dash::Dependencies::State->new(@params);
35 }
36  
37 1;
38  
39 __END__