Wizard/Elem/TextArea/HTML.pm

filter: Statementstmt 69.2% 9 / 13 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 57.8% 11 / 19 CC 2 SCAR 12.5
CC
2
Cov
60%
Display
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
« Wizard/Elem/Data/HTML.pm ↑ Summary Wizard/Elem/Title/HTML.pm »
1 # -*- perl -*-
2 #
3 # Wizard - A Perl package for implementing system administration
4 # applications in the style of Windows wizards.
5 #
6 #
7 # This module is
8 #
9 # Copyright (C) 1999 Jochen Wiedmann
10 # Am Eisteich 9
11 # 72555 Metzingen
12 # Germany
13 #
14 # Email: joe@ispsoft.de
15 # Phone: +49 7123 14887
16 #
17 # and Amarendran R. Subramanian
18 # Grundstr. 32
19 # 72810 Gomaringen
20 # Germany
21 #
22 # Email: amar@ispsoft.de
23 # Phone: +49 7072 920696
24 #
25 # All Rights Reserved.
26 #
27 # You may distribute under the terms of either the GNU General Public
28 # License or the Artistic License, as specified in the Perl README file.
29 #
30 # $Id$
31 #
32  
33 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
34  
35 1 ▶use Wizard::Elem::HTML ();
Subroutine BEGIN: called CC=1 SCAR=0.0
36  
37  
38 package Wizard::Elem::TextArea::HTML;
39  
40 1 @Wizard::Elem::TextArea::HTML::ISA = qw(Wizard::Elem::HTML);
41 1 $Wizard::Elem::TextArea::HTML::VERSION = '0.01';
42  
43  
44 0 ▶sub Display {
Subroutine Display: not called CC=2 SCAR=17.9
Pod undocumented
45 0 my($self, $wiz, $form, $state) = @_;
46 0 $self->SUPER::Display($wiz, $form, $state);
47 0 ▶ my $value = defined($self->{'value'}) ? $self->{'value'} : '';
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'value'} ? : 0 0 0
48 $form->addHTML(sprintf('<tr><td>%s</td><td><textarea name="%s">%s'
49 . '</textarea></td></tr>',
50 HTML::Entities::encode_entities($self->{'descr'}),
51 0 $self->{'name'},
52 HTML::Entities::encode_entities($value)));
53 }
54  
55  
56 1 1;
« Wizard/Elem/Data/HTML.pm ↑ Summary Wizard/Elem/Title/HTML.pm »