FormHandler/Page.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 85.7% 18 / 21 CC 1 SCAR 2.2
CC
1
Cov
94%
__ANON__
2.0
BEGIN
1.0
field
1.0
CRAP 1.2
« FormHandler/Widget/Wrapper/Fieldset.pm ↑ Summary FormHandler/Moose/Role.pm »
1 package HTML::FormHandler::Page;
2 # ABSTRACT: used in Wizard
3 1 $HTML::FormHandler::Page::VERSION = '0.410002';
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 with 'HTML::FormHandler::Pages';
6  
7 1 has 'name' => ( is => 'ro', isa => 'Str' );
8  
9 1 has 'form' => (
10 isa => 'HTML::FormHandler',
11 is => 'rw',
12 weak_ref => 1,
13 predicate => 'has_form',
14 );
15  
16 has 'fields' => (
17 traits => ['Array'],
18 isa => 'ArrayRef[Str]',
19 is => 'rw',
20 0 ▶ default => sub { [] },
Subroutine __ANON__: not called CC=1 SCAR=6.9
21 1 handles => {
22 all_fields => 'elements',
23 clear_fields => 'clear',
24 push_field => 'push',
25 num_fields => 'count',
26 has_fields => 'count',
27 }
28 );
29  
30 2 ▶sub field {
Subroutine field: called CC=1 SCAR=0.0
Pod undocumented
31 2 my ( $self, $field_name ) = @_;
32  
33 2 return $self->form->field($field_name);
34 }
35  
36 1 __PACKAGE__->meta->make_immutable;
37 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 1;
39  
40 __END__
« FormHandler/Widget/Wrapper/Fieldset.pm ↑ Summary FormHandler/Moose/Role.pm »