blib/lib/Rose/HTML/Form/Field/Hidden.pm

filter: Statementstmt 73.9% 17 / 23 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 41.6% 5 / 12 Podpod 80.0% 8 / 10 totaltotal 58.8% 30 / 51 CC 4 SCAR 11.6
CC
4
Cov
59%
hidden_fields
6.0
html_hidden_fields
6.0
xhtml_hidden_fields
6.0
CRAP 3.2
« blib/lib/Rose/HTML/Form/Field/Integer.pm ↑ Summary blib/lib/Rose/HTML/Form/Field/TextArea.pm »
1 package Rose::HTML::Form::Field::Hidden;
2  
3 19 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 19 ▶use base 'Rose::HTML::Form::Field::Input';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 19 our $VERSION = '0.616';
8  
9 19 __PACKAGE__->delete_valid_html_attrs(qw(disabled ismap usemap alt src tabindex
10 checked maxlength onblur onchange onclick ondblclick onfocus onkeydown
11 onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup
12 onselect readonly size title accesskey));
13  
14 19 __PACKAGE__->add_required_html_attrs('value');
15 19 __PACKAGE__->required_html_attr_value(type => 'hidden');
16  
17 0 ▶sub hidden_fields { (wantarray) ? shift : [ shift ] }
Subroutine hidden_fields: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 0 0 0
18 0 ▶sub html_hidden_fields { (wantarray) ? shift->html_field : [ shift->html_field ] }
Subroutine html_hidden_fields: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 0 0 0
19 0 ▶sub xhtml_hidden_fields { (wantarray) ? shift->xhtml_field : [ shift->xhtml_field ] }
Subroutine xhtml_hidden_fields: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 0 0 0
20  
21 153 ▶sub error { }
Subroutine error: called CC=1 SCAR=0.0
Pod documented
22 0 ▶sub errors { }
Subroutine errors: not called CC=1 SCAR=0.0
Pod undocumented
23 0 ▶sub has_error { 0 }
Subroutine has_error: not called CC=1 SCAR=6.9
Pod documented
24 0 ▶sub has_errors { 0 }
Subroutine has_errors: not called CC=1 SCAR=6.9
Pod undocumented
25 0 ▶sub validate { 1 }
Subroutine validate: not called CC=1 SCAR=6.9
Pod documented
26  
27 sub html_field
28 87 ▶{
Subroutine html_field: called CC=1 SCAR=0.0
Pod documented
29 87 my($self) = shift;
30 87 $self->html_attr(value => $self->output_value);
31 87 return $self->SUPER::html_field(@_);
32 }
33  
34 sub xhtml_field
35 44 ▶{
Subroutine xhtml_field: called CC=1 SCAR=0.0
Pod documented
36 44 my($self) = shift;
37 44 $self->html_attr(value => $self->output_value);
38 44 return $self->SUPER::xhtml_field(@_);
39 }
40  
41 19 1;
42  
43 __END__
« blib/lib/Rose/HTML/Form/Field/Integer.pm ↑ Summary blib/lib/Rose/HTML/Form/Field/TextArea.pm »