Wurfl/Parameters.pm untested

filter: Statementstmt 0.0% 0 / 30 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 42 CC 2 SCAR 10.3
CC
2
Cov
0%
WurflAPIKey
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.8
1 package Apache2::Wurfl::Parameters;
2
3 use strict;
4 use warnings FATAL => 'all';
5
6 use Apache::Test;
7 use Apache::TestUtil;
8
9 use Apache2::Const -compile => qw(OR_ALL ITERATE);
10
11 use Apache2::CmdParms ();
12 use Apache2::Module ();
13 use Apache2::Directive ();
14  
15  
16 my @directives = (
17 {
18 name => 'WurflAPIKey'
19 }
20 );
21  
22 Apache2::Module::add(__PACKAGE__, \@directives);
23
24 sub WurflAPIKey {
25 my ($self, $param, $arg) = @_;
26 die sprintf "error: WurflAPIKey expect a value" unless $arg;
27 $self->{WurflAPIKey} = $arg;
28
29 }
30  
31 1;