blib/lib/QuadPres/Base.pm

filter: Statementstmt 72.0% 18 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 3 totaltotal 65.7% 23 / 35 CC 1 SCAR 2.5
CC
1
Cov
72%
new
2.0
mk_accessors
2.0
BEGIN
1.0
CRAP 1.3
« blib/lib/QuadPres/Exception.pm ↑ Summary blib/lib/QuadPres/VimIface.pm »
1 package QuadPres::Base;
2 6 $QuadPres::Base::VERSION = '0.28.2';
3 6 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 6 ▶use Class::XSAccessor;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub new
10 {
11 0 ▶ my $class = shift;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
12 0 my $self = {};
13 0 bless $self, $class;
14  
15 # May throw an exception.
16 0 $self->_init(@_);
17  
18 0 return $self;
19 }
20  
21 sub mk_accessors
22 {
23 0 ▶ my $package = shift;
Subroutine mk_accessors: not called CC=1 SCAR=6.9
Pod undocumented
24 0 return $package->mk_acc_ref( [@_] );
25 }
26  
27 sub mk_acc_ref
28 {
29 5 ▶ my $package = shift;
Subroutine mk_acc_ref: called CC=1 SCAR=0.0
Pod undocumented
30 5 my $names = shift;
31  
32 5 my $mapping = +{ map { $_ => $_ } @$names };
33  
34 5 eval <<"EOF";
35 package $package;
36  
37 Class::XSAccessor->import(
38 accessors => \$mapping,
39 );
40 EOF
41  
42 }
43  
44 6 1;
45  
46 __END__
47  
48 =pod
49  
50 =encoding UTF-8
51  
52 =head1 VERSION
53  
54 version 0.28.2
55  
56 =for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
57  
58 =head1 SUPPORT
59  
60 =head2 Websites
61  
62 The following websites have more information about this module, and may be of help to you. As always,
63 in addition to those websites please use your favorite search engine to discover more resources.
64  
65 =over 4
66  
67 =item *
68  
69 MetaCPAN
70  
71 A modern, open-source CPAN search engine, useful to view POD in HTML format.
72  
73 L<https://metacpan.org/release/QuadPres>
74  
75 =item *
76  
77 RT: CPAN's Bug Tracker
78  
79 The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
80  
81 L<https://rt.cpan.org/Public/Dist/Display.html?Name=QuadPres>
82  
83 =item *
84  
85 CPANTS
86  
87 The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
88  
89 L<http://cpants.cpanauthors.org/dist/QuadPres>
90  
91 =item *
92  
93 CPAN Testers
94  
95 The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
96  
97 L<http://www.cpantesters.org/distro/Q/QuadPres>
98  
99 =item *
100  
101 CPAN Testers Matrix
102  
103 The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
104  
105 L<http://matrix.cpantesters.org/?dist=QuadPres>
106  
107 =item *
108  
109 CPAN Testers Dependencies
110  
111 The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
112  
113 L<http://deps.cpantesters.org/?module=QuadPres>
114  
115 =back
116  
117 =head2 Bugs / Feature Requests
118  
119 Please report any bugs or feature requests by email to C<bug-quadpres at rt.cpan.org>, or through
120 the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=QuadPres>. You will be automatically notified of any
121 progress on the request by the system.
122  
123 =head2 Source Code
124  
125 The code is open to the world, and available for you to hack on. Please feel free to browse it and play
126 with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull
127 from your repository :)
128  
129 L<https://github.com/shlomif/quad-pres>
130  
131 git clone https://github.com/shlomif/quad-pres.git
132  
133 =head1 AUTHOR
134  
135 Shlomi Fish <shlomif@cpan.org>
136  
137 =head1 BUGS
138  
139 Please report any bugs or feature requests on the bugtracker website
140 L<https://github.com/shlomif/quad-pres/issues>
141  
142 When submitting a bug or request, please include a test-file or a
143 patch to an existing test-file that illustrates the bug or desired
144 feature.
145  
146 =head1 COPYRIGHT AND LICENSE
147  
148 This software is Copyright (c) 2019 by Shlomi Fish.
149  
150 This is free software, licensed under:
151  
152 The MIT (X11) License
153  
154 =cut
« blib/lib/QuadPres/Exception.pm ↑ Summary blib/lib/QuadPres/VimIface.pm »