FormHandler/Model/Object.pm

filter: Statementstmt 53.3% 8 / 15 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 43.4% 10 / 23 CC 4 SCAR 26.1
CC
4
Cov
42%
update_model
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 13.7
« FormHandler/Widget/Field/Role/SelectedOption.pm ↑ Summary FormHandler/Widget/Field/CheckboxGroup.pm »
1 package HTML::FormHandler::Model::Object;
2 # ABSTRACT: stub for Object model
3 1 $HTML::FormHandler::Model::Object::VERSION = '0.410000';
4 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub update_model {
7 0 ▶ my $self = shift;
Subroutine update_model: not called CC=4 SCAR=30.0
Pod undocumented
8  
9 0 my $item = $self->item;
10 0 ▶ return unless $item;
Branch: 1 branch
BranchTrueFalseTotal
unless $item 0 0 0
11 0 foreach my $field ( $self->all_fields ) {
12 0 my $name = $field->name;
13 0 ▶ next unless $item->can($name);
Branch: 1 branch
BranchTrueFalseTotal
unless $item->can($name) 0 0 0
14 0 $item->$name( $field->value );
15 }
16 }
17  
18 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 1;
20  
21 __END__
22  
23 =pod
24  
25 =encoding UTF-8
26  
27 =head1 NAME
28  
29 HTML::FormHandler::Model::Object - stub for Object model
30  
31 =head1 VERSION
32  
33 version 0.410000
34  
35 =head1 AUTHOR
36  
37 FormHandler Contributors - see HTML::FormHandler
38  
39 =head1 COPYRIGHT AND LICENSE
40  
41 This software is copyright (c) 2017 by Gerda Shank.
42  
43 This is free software; you can redistribute it and/or modify it under
44 the same terms as the Perl 5 programming language system itself.
45  
46 =cut
« FormHandler/Widget/Field/Role/SelectedOption.pm ↑ Summary FormHandler/Widget/Field/CheckboxGroup.pm »