lib/HTML/FormFu/Exception.pm

filter: Statementstmt 95.0% 19 / 20 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 84.3% 27 / 32 CC 3 SCAR 4.4
CC
3
Cov
88%
render_data
2.1
render_data_non_recursive
2.0
BEGIN
1.0
CRAP 1.5
« lib/HTML/FormFu/Upload.pm ↑ Summary lib/HTML/FormFu/Filter/LowerCase.pm »
1 457 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package HTML::FormFu::Exception;
4 # ABSTRACT: Exception base class
5 457 $HTML::FormFu::Exception::VERSION = '2.09';
6 457 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 457 with 'HTML::FormFu::Role::Populate';
9  
10 457 ▶use HTML::FormFu::ObjectUtil qw( form parent );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 237 ▶sub BUILD { }
Subroutine BUILD: called CC=1 SCAR=0.0
13  
14 54 ▶sub render_data {
Subroutine render_data: called CC=2 SCAR=7.6
Pod undocumented
15 54 my $self = shift;
16  
17 0 ▶ my $render = $self->render_data_non_recursive( { @_ ? %{ $_[0] } : () } );
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 54 54
18  
19 54 return $render;
20 }
21  
22 54 ▶sub render_data_non_recursive {
Subroutine render_data_non_recursive: called CC=2 SCAR=7.1
Pod undocumented
23 54 my ( $self, $args ) = @_;
24  
25 54 ▶ my %render = (
Branch: 1 branch
BranchTrueFalseTotal
$args ? : 54 0 54
26 parent => $self->parent,
27 form => $self->form,
28 $args ? %$args : (),
29 );
30  
31 54 return \%render;
32 }
33  
34 457 __PACKAGE__->meta->make_immutable;
35  
36 457 1;
37  
38 __END__
« lib/HTML/FormFu/Upload.pm ↑ Summary lib/HTML/FormFu/Filter/LowerCase.pm »