OptArgs2/Class.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 100% 3 / 3 totaltotal 100% 34 / 34 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« OptArgs2.pm ↑ Summary
1 package CXC::Form::Tiny::Plugin::OptArgs2::Class;
2  
3 # ABSTRACT: Class role for OptArgs2
4  
5 6 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 6 our $VERSION = '0.12';
10  
11 6 ▶use Hash::Fold ();
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 6 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 6 ▶use experimental 'signatures', 'postderef';
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 6 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27 10 ▶sub optargs ( $self ) {
Subroutine optargs: called CC=1 SCAR=0.0
Pod documented
28 10 return $self->form_meta->optargs;
29 }
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40 2 ▶sub set_input_from_optargs ( $self, $optargs ) {
Subroutine set_input_from_optargs: called CC=1 SCAR=0.0
Pod documented
41 # inflate the flat hash into the nested structure and set the
42 # form's input
43 2 $self->set_input( $self->inflate_optargs( $optargs ) );
44 }
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57 2 ▶sub inflate_optargs ( $self, $optargs ) {
Subroutine inflate_optargs: called CC=1 SCAR=0.0
Pod documented
58 2 return $self->form_meta->inflate_optargs( $optargs );
59 }
60  
61  
62 #
63 # This file is part of CXC-Form-Tiny-Plugin-OptArgs2
64 #
65 # This software is Copyright (c) 2023 by Smithsonian Astrophysical Observatory.
66 #
67 # This is free software, licensed under:
68 #
69 # The GNU General Public License, Version 3, June 2007
70 #
71  
72 6 1;
73  
74 __END__
« OptArgs2.pm ↑ Summary