lib/HTML/FormFu/Exception/Constraint.pm

filter: Statementstmt 100% 16 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 88.0% 22 / 25 CC 2 SCAR 3.0
CC
2
Cov
94%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« lib/HTML/FormFu/Inflator/Callback.pm ↑ Summary lib/HTML/FormFu/Exception/Inflator.pm »
1 444 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package HTML::FormFu::Exception::Constraint;
4 # ABSTRACT: Constraint exception
5 444 $HTML::FormFu::Exception::Constraint::VERSION = '2.09';
6 444 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 444 extends 'HTML::FormFu::Exception::Input';
8  
9 90 ▶sub stage {
Subroutine stage: called CC=1 SCAR=0.0
Pod undocumented
10 90 return 'constraint';
11 }
12  
13 517 ▶sub constraint {
Subroutine constraint: called CC=1 SCAR=0.0
Pod undocumented
14 517 return shift->processor(@_);
15 }
16  
17 51 ▶around render_data_non_recursive => sub {
Subroutine __ANON__: called CC=2 SCAR=7.1
18 51 my ( $orig, $self, $args ) = @_;
19  
20 51 ▶ my $render = $self->$orig(
Branch: 1 branch
BranchTrueFalseTotal
$args ? : 51 0 51
21 { stage => $self->stage,
22 constraint => $self->constraint,
23 $args ? %$args : (),
24 } );
25  
26 51 return $render;
27 444 };
28  
29 444 __PACKAGE__->meta->make_immutable;
30  
31 444 1;
32  
33 __END__
« lib/HTML/FormFu/Inflator/Callback.pm ↑ Summary lib/HTML/FormFu/Exception/Inflator.pm »