blib/lib/Catalyst/Plugin/SuperForm.pm

filter: Statementstmt 87.5% 42 / 48 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 92.8% 13 / 14 Podpod 100% 1 / 1 totaltotal 86.1% 56 / 65 CC 2 SCAR 5.1
CC
2
Cov
84%
superform
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.7
↑ Summary
1 package Catalyst::Plugin::SuperForm;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use HTML::SuperForm;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use HTML::SuperForm::Field;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use HTML::SuperForm::Field::Checkbox;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use HTML::SuperForm::Field::CheckboxGroup;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use HTML::SuperForm::Field::Hidden;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use HTML::SuperForm::Field::Password;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use HTML::SuperForm::Field::Radio;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use HTML::SuperForm::Field::RadioGroup;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use HTML::SuperForm::Field::Select;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use HTML::SuperForm::Field::Submit;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use HTML::SuperForm::Field::Text;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use HTML::SuperForm::Field::Textarea;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 our $VERSION = '0.01';
18  
19 1 *sform = \&superform;
20  
21 0 ▶sub superform {
Subroutine superform: not called CC=2 SCAR=17.9
Pod documented
22 0 my $c = shift;
23  
24 0 ▶ unless ( $c->{superform} ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($c->{"superform"}) 0 0 0
25 0 $c->{superform} = HTML::SuperForm->new( $c->request->parameters );
26 0 $c->{superform}->fallback(1);
27 0 $c->{superform}->sticky(1);
28 }
29  
30 0 return $c->{superform};
31 }
32  
33 1 1;
34  
35 __END__
↑ Summary