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 SCAR 11.0
CC
3
Cov
88%
render_data
2.1
render_data_non_recursive
2.0
BEGIN
1.0
CRAP 3.0
« lib/HTML/FormFu/Filter/FormatNumber.pm ↑ Summary lib/HTML/FormFu/Deflator/FormatNumber.pm »
1 404 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package HTML::FormFu::Exception;
4 404 $HTML::FormFu::Exception::VERSION = '2.06';
5 404 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 404 with 'HTML::FormFu::Role::Populate';
8  
9 404 ▶use HTML::FormFu::ObjectUtil qw( form parent );
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 ▶sub BUILD { }
Subroutine BUILD: called CC=1 SCAR=0.0
12  
13 sub render_data {
14 50 ▶ my $self = shift;
Subroutine render_data: called CC=2 SCAR=7.6
Pod undocumented
15  
16 50 ▶ my $render = $self->render_data_non_recursive( { @_ ? %{ $_[0] } : () } );
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 50 50
17  
18 50 return $render;
19 }
20  
21 sub render_data_non_recursive {
22 50 ▶ my ( $self, $args ) = @_;
Subroutine render_data_non_recursive: called CC=2 SCAR=7.1
Pod undocumented
23  
24 50 ▶ my %render = (
Branch: 1 branch
BranchTrueFalseTotal
$args ? : 50 0 50
25 parent => $self->parent,
26 form => $self->form,
27 $args ? %$args : (),
28 );
29  
30 50 return \%render;
31 }
32  
33 404 __PACKAGE__->meta->make_immutable;
34  
35 404 1;
36  
37 __END__
38  
39 =pod
40  
41 =encoding UTF-8
42  
43 =head1 NAME
44  
45 HTML::FormFu::Exception
46  
47 =head1 VERSION
48  
49 version 2.06
50  
51 =head1 AUTHOR
52  
53 Carl Franks <cpan@fireartist.com>
54  
55 =head1 COPYRIGHT AND LICENSE
56  
57 This software is copyright (c) 2018 by Carl Franks.
58  
59 This is free software; you can redistribute it and/or modify it under
60 the same terms as the Perl 5 programming language system itself.
61  
62 =cut
« lib/HTML/FormFu/Filter/FormatNumber.pm ↑ Summary lib/HTML/FormFu/Deflator/FormatNumber.pm »