File Coverage

blib/lib/VoiceXML/Client/Item/Filled.pm
Criterion Covered Total %
statement 19 28 67.8
branch 1 2 50.0
condition 1 2 50.0
subroutine 5 6 83.3
pod 1 2 50.0
total 27 40 67.5


line stmt bran cond sub pod time code
1              
2             package VoiceXML::Client::Item::Filled;
3              
4              
5              
6 3     3   17 use strict;
  3         5  
  3         122  
7              
8 3     3   15 use base qw (VoiceXML::Client::Item);
  3         6  
  3         240  
9 3     3   18 use VoiceXML::Client::Util;
  3         6  
  3         180  
10              
11             =head1 COPYRIGHT AND LICENSE
12              
13            
14             Copyright (C) 2007,2008 by Pat Deegan.
15             All rights reserved
16             http://voicexml.psychogenic.com
17              
18             This library is released under the terms of the GNU GPL version 3, making it available only for
19             free programs ("free" here being used in the sense of the GPL, see http://www.gnu.org for more details).
20             Anyone wishing to use this library within a proprietary or otherwise non-GPLed program MUST contact psychogenic.com to
21             acquire a distinct license for their application. This approach encourages the use of free software
22             while allowing for proprietary solutions that support further development.
23              
24              
25             This file is part of VoiceXML::Client.
26              
27            
28            
29             VoiceXML::Client is free software: you can redistribute it and/or modify
30             it under the terms of the GNU General Public License as published by
31             the Free Software Foundation, either version 3 of the License, or
32             (at your option) any later version.
33              
34             VoiceXML::Client is distributed in the hope that it will be useful,
35             but WITHOUT ANY WARRANTY; without even the implied warranty of
36             MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37             GNU General Public License for more details.
38              
39             You should have received a copy of the GNU General Public License
40             along with VoiceXML::Client. If not, see .
41              
42              
43             =cut
44              
45              
46              
47              
48 3         780 use vars qw{
49             $VERSION
50 3     3   15 };
  3         5  
51              
52             $VERSION = $VoiceXML::Client::Item::VERSION;
53              
54              
55              
56              
57             sub init {
58 1     1 1 3 my $self = shift;
59            
60 1   50     5 my $mode = $self->{'XMLElement'}->attribute('mode') || 'all';
61 1         21 my $namelist = $self->{'XMLElement'}->attribute('namelist');
62              
63            
64 1         15 $self->{'vars'} = [];
65 1         3 $self->{'mode'} = $mode;
66 1 50       3 if ($namelist)
67             {
68 0         0 $self->{'namelist'} = $namelist;
69 0         0 my @names = split(/\s+/, $namelist);
70 0         0 foreach my $n (@names)
71             {
72            
73 0         0 push @{$self->{'vars'}}, $n;
  0         0  
74             }
75             }
76            
77            
78            
79 1         3 return 1;
80            
81             }
82              
83             sub execute {
84 0     0 0   my $self = shift;
85 0           my $handle = shift;
86 0           my $optParams = shift;
87            
88             ############# DO STUFF ??
89            
90 0           return $self->executeChildren($handle, $optParams);
91             }
92             1;