lib/HTML/FormFu/Role/GetProcessors.pm

filter: Statementstmt 100% 56 / 56 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 0.0% 0 / 7 totaltotal 90.4% 66 / 73 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/HTML/FormFu/Constraint/SingleValue.pm ↑ Summary lib/HTML/FormFu/Literal.pm »
1 403 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package HTML::FormFu::Role::GetProcessors;
4 403 $HTML::FormFu::Role::GetProcessors::VERSION = '2.06';
5 403 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 403 use HTML::FormFu::Util qw(
8 _parse_args
9 _filter_components
10 403 ▶);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 sub get_deflators {
13 4 ▶ my $self = shift;
Subroutine get_deflators: called CC=1 SCAR=0.0
Pod undocumented
14 4 my %args = _parse_args(@_);
15  
16 4 my @x = map { @{ $_->get_deflators(@_) } } @{ $self->_elements };
17  
18 4 return _filter_components( \%args, \@x );
19 }
20  
21 sub get_filters {
22 623 ▶ my $self = shift;
Subroutine get_filters: called CC=1 SCAR=0.0
Pod undocumented
23 623 my %args = _parse_args(@_);
24  
25 623 my @x = map { @{ $_->get_filters(@_) } } @{ $self->_elements };
26  
27 623 return _filter_components( \%args, \@x );
28 }
29  
30 sub get_constraints {
31 633 ▶ my $self = shift;
Subroutine get_constraints: called CC=1 SCAR=0.0
Pod undocumented
32 633 my %args = _parse_args(@_);
33  
34 633 my @x = map { @{ $_->get_constraints(@_) } } @{ $self->_elements };
35  
36 633 return _filter_components( \%args, \@x );
37 }
38  
39 sub get_inflators {
40 430 ▶ my $self = shift;
Subroutine get_inflators: called CC=1 SCAR=0.0
Pod undocumented
41 430 my %args = _parse_args(@_);
42  
43 430 my @x = map { @{ $_->get_inflators(@_) } } @{ $self->_elements };
44  
45 430 return _filter_components( \%args, \@x );
46 }
47  
48 sub get_validators {
49 422 ▶ my $self = shift;
Subroutine get_validators: called CC=1 SCAR=0.0
Pod undocumented
50 422 my %args = _parse_args(@_);
51  
52 422 my @x = map { @{ $_->get_validators(@_) } } @{ $self->_elements };
53  
54 422 return _filter_components( \%args, \@x );
55 }
56  
57 sub get_transformers {
58 421 ▶ my $self = shift;
Subroutine get_transformers: called CC=1 SCAR=0.0
Pod undocumented
59 421 my %args = _parse_args(@_);
60  
61 421 my @x = map { @{ $_->get_transformers(@_) } } @{ $self->_elements };
62  
63 421 return _filter_components( \%args, \@x );
64 }
65  
66 sub get_plugins {
67 1533 ▶ my $self = shift;
Subroutine get_plugins: called CC=1 SCAR=0.0
Pod undocumented
68 1533 my %args = _parse_args(@_);
69  
70 1533 return _filter_components( \%args, $self->_plugins );
71 }
72  
73 403 1;
74  
75 __END__
76  
77 =pod
78  
79 =encoding UTF-8
80  
81 =head1 NAME
82  
83 HTML::FormFu::Role::GetProcessors
84  
85 =head1 VERSION
86  
87 version 2.06
88  
89 =head1 AUTHOR
90  
91 Carl Franks <cpan@fireartist.com>
92  
93 =head1 COPYRIGHT AND LICENSE
94  
95 This software is copyright (c) 2018 by Carl Franks.
96  
97 This is free software; you can redistribute it and/or modify it under
98 the same terms as the Perl 5 programming language system itself.
99  
100 =cut
« lib/HTML/FormFu/Constraint/SingleValue.pm ↑ Summary lib/HTML/FormFu/Literal.pm »