Kit/Role/Validator.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Kit/Role/Renderer.pm ↑ Summary
1 package Email::MIME::Kit::Role::Validator 3.000007;
2 # ABSTRACT: things that validate assembly parameters
3  
4 3 ▶use v5.20.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 #pod =head1 IMPLEMENTING
8 #pod
9 #pod This role also performs L<Email::MIME::Kit::Role::Component>.
10 #pod
11 #pod Classes implementing this role are used to validate that the arguments passed
12 #pod to C<< $mkit->assemble >> are valid. Classes must provide a C<validate> method
13 #pod which will be called with the hashref of values passed to the kit's C<assemble>
14 #pod method. If the arguments are not valid for the kit, the C<validate> method
15 #pod should raise an exception.
16 #pod
17 #pod =cut
18  
19 3 with 'Email::MIME::Kit::Role::Component';
20  
21 3 requires 'validate';
22  
23 3 ▶no Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 3 1;
25  
26 __END__
27  
28 =pod
29  
30 =encoding UTF-8
31  
32 =head1 NAME
33  
34 Email::MIME::Kit::Role::Validator - things that validate assembly parameters
35  
36 =head1 VERSION
37  
38 version 3.000007
39  
40 =head1 PERL VERSION
41  
42 This library should run on perls released even a long time ago. It should work
43 on any version of perl released in the last five years.
44  
45 Although it may work on older versions of perl, no guarantee is made that the
46 minimum required version will not be increased. The version may be increased
47 for any reason, and there is no promise that patches will be accepted to lower
48 the minimum required perl.
49  
50 =head1 IMPLEMENTING
51  
52 This role also performs L<Email::MIME::Kit::Role::Component>.
53  
54 Classes implementing this role are used to validate that the arguments passed
55 to C<< $mkit->assemble >> are valid. Classes must provide a C<validate> method
56 which will be called with the hashref of values passed to the kit's C<assemble>
57 method. If the arguments are not valid for the kit, the C<validate> method
58 should raise an exception.
59  
60 =head1 AUTHOR
61  
62 Ricardo Signes <rjbs@cpan.org>
63  
64 =head1 COPYRIGHT AND LICENSE
65  
66 This software is copyright (c) 2023 by Ricardo Signes.
67  
68 This is free software; you can redistribute it and/or modify it under
69 the same terms as the Perl 5 programming language system itself.
70  
71 =cut
« Kit/Role/Renderer.pm ↑ Summary