Client/Engine/Component/Interpreter.pm

filter: Statementstmt 25.0% 4 / 16 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 25.0% 1 / 4 Podpod 33.3% 1 / 3 totaltotal 21.4% 6 / 28 CC 2 SCAR 12.2
CC
2
Cov
21%
new
6.0
init
2.0
runtime
2.0
CRAP 3.4
« Client/Item/NoMatch.pm ↑ Summary Client/Engine/Component.pm »
1 package VoiceXML::Client::Engine::Component::Interpreter;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5  
6  
7  
8 =head1 COPYRIGHT AND LICENSE
9  
10
11 Copyright (C) 2007,2008 by Pat Deegan.
12 All rights reserved
13 http://voicexml.psychogenic.com
14  
15 This library is released under the terms of the GNU GPL version 3, making it available only for
16 free programs ("free" here being used in the sense of the GPL, see http://www.gnu.org for more details).
17 Anyone wishing to use this library within a proprietary or otherwise non-GPLed program MUST contact psychogenic.com to
18 acquire a distinct license for their application. This approach encourages the use of free software
19 while allowing for proprietary solutions that support further development.
20  
21  
22 This file is part of VoiceXML::Client.
23  
24
25
26 VoiceXML::Client is free software: you can redistribute it and/or modify
27 it under the terms of the GNU General Public License as published by
28 the Free Software Foundation, either version 3 of the License, or
29 (at your option) any later version.
30  
31 VoiceXML::Client is distributed in the hope that it will be useful,
32 but WITHOUT ANY WARRANTY; without even the implied warranty of
33 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 GNU General Public License for more details.
35  
36 You should have received a copy of the GNU General Public License
37 along with VoiceXML::Client. If not, see <http://www.gnu.org/licenses/>.
38  
39  
40 =cut
41  
42  
43 =head2 new
44  
45 Creates a new instance
46  
47 =cut
48  
49 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
50 0 my $class = shift;
51 0 my $params = shift;
52
53 0 my $self = {};
54
55 0 ▶ bless $self, ref $class || $class;
Condition0%0/3
ref $class || $class
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table0%0/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
56
57 0 $self->init($params);
58 0 return $self;
59 }
60  
61 0 ▶sub init {
Subroutine init: not called CC=1 SCAR=6.9
Pod undocumented
62 0 my $self = shift;
63 0 my $params = shift;
64
65 0 return 1;
66 }
67  
68  
69  
70  
71 0 ▶sub runtime {
Subroutine runtime: not called CC=1 SCAR=6.9
Pod undocumented
72 0 my $self = shift;
73 0 my $params = shift;
74
75 0 die "Override in subclass";
76
77 }
78  
79 3 1;
« Client/Item/NoMatch.pm ↑ Summary Client/Engine/Component.pm »