blib/lib/ASPEER/MakeMaker/Markdown/Publish/MM/Constant.pm

filter: Statementstmt 100% 37 / 37 Branchbran n/a Conditioncond 50.0% 2 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 92.0% 46 / 50 CC 1 SCAR 0.0
CC
1
Cov
95%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/ASPEER/MakeMaker/Markdown/Publish/MM.pm ↑ Summary blib/lib/ASPEER/MakeMaker/Markdown/Publish.pm »
1 #
2 # This file is part of ASPEER::MakeMaker::Markdown::Publish.
3 #
4 # This software is copyright (c) 2026 by Andrew Speer <andrew.speer@isolutions.com.au>.
5 #
6 # This is free software; you can redistribute it and/or modify it under
7 # the same terms as the Perl 5 programming language system itself.
8 #
9 # Full license text is available at:
10 #
11 # <http://dev.perl.org/licenses/>
12 #
13  
14 package ASPEER::MakeMaker::Markdown::Publish::MM::Constant;
15  
16 2 ▶use strict qw(vars);
Subroutine BEGIN: called CC=1 SCAR=0.0
17 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶use vars qw($VERSION @ISA %EXPORT_TAGS @EXPORT_OK @EXPORT %Constant);
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 2 ▶use Cwd qw(abs_path);
Subroutine BEGIN: called CC=1 SCAR=0.0
21 2 ▶use File::Basename qw(dirname);
Subroutine BEGIN: called CC=1 SCAR=0.0
22 2 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 2 $VERSION='1.003';
25  
26 2 my $local_fn=abs_path(__FILE__).'.local';
27  
28 %Constant=(
29 MM_PREFIX => 'PUBLISH',
30  
31 TEMPLATE_POSTAMBLE_FN =>
32 File::Spec->catfile(dirname(abs_path(__FILE__)), 'postamble.inc'),
33  
34 PUBLISH_PM => 'ASPEER::MakeMaker::Markdown::Publish::MM',
35  
36 PUBLISH_PM_ARGV => join(',', qw[
37 "$(NAME)"
38 "$(NAME_SYM)"
39 "$(DISTNAME)"
40 "$(DISTVNAME)"
41 "$(VERSION)"
42 "$(VERSION_SYM)"
43 "$(VERSION_FROM)"
44 "$(LICENSE)"
45 "$(AUTHOR)"
46 "$(TO_INST_PM)"
47 "$(EXE_FILES)"
48 "$(DIST_DEFAULT_TARGET)"
49 "$(SUFFIX)"
50 "$(ABSTRACT_FROM)"
51 "$(PUBLISH_CONFIG)"
52 ]),
53  
54 2 ▶ %{do($local_fn) || {}},
Condition50%1/2
do $local_fn || {}
l!l
02
MC/DC0%0/1
do $local_fn || {}
do $local_fn
Truth table50%1/2
A
A= do $local_fn
Aresult
11
00
55 2 ▶ %{do(glob(sprintf('~/.%s.local', __PACKAGE__))) || {}}
Condition50%1/2
do (glob('~/.ASPEER::MakeMaker::Markdown::Publish::MM::Constant.local')) || {}
l!l
02
MC/DC0%0/1
do (glob('~/.ASPEER::MakeMaker::Markdown::Publish::MM::Constant.local')) || {}
do (glob('~/.ASPEER::MakeMaker::Markdown::Publish::MM::Constant.local'))
Truth table50%1/2
A
A= do (glob('~/.ASPEER::MakeMaker::Markdown::Publish::MM::Constant.local'))
Aresult
11
00
56 );
57  
58 2 require Exporter;
59 2 @ISA=qw(Exporter);
60 {
61 2 ▶ no warnings qw(once);
Subroutine BEGIN: called CC=1 SCAR=0.0
62 2 foreach (keys(%Constant)) {${$_}=$Constant{$_}}
63 }
64 2 @EXPORT=map {'$'.$_} keys(%Constant);
65 2 @EXPORT_OK=@EXPORT;
66 2 %EXPORT_TAGS=(all => [@EXPORT_OK]);
67  
68 2 1;
69  
70 __END__
71  
72 =begin markdown
73  
74 # NAME
75  
76 ASPEER::MakeMaker::Markdown::Publish::MM::Constant - Makefile target constants
77  
78 # DESCRIPTION
79  
80 Defines the private `PUBLISH_*` macro namespace, bundled postamble template,
81 target dispatcher module, and fixed MakeMaker argument list used by
82 `ASPEER::MakeMaker::Markdown::Publish`.
83  
84 The final argument is `PUBLISH_CONFIG`, the Base64-encoded JSON value derived
85 from `META_MERGE.x_documentation.publish`.
86  
87 # AUTHOR
88  
89 Andrew Speer <andrew.speer@isolutions.com.au>
90  
91 # LICENSE and COPYRIGHT
92  
93 This file is part of ASPEER::MakeMaker::Markdown::Publish.
94  
95 This software is copyright (c) 2026 by Andrew Speer <andrew.speer@isolutions.com.au>.
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 Full license text is available at:
101  
102 <http://dev.perl.org/licenses/>
103  
104  
105 =end markdown
106  
107  
108 =head1 NAME
109  
110 ASPEER::MakeMaker::Markdown::Publish::MM::Constant - Makefile target constants
111  
112  
113 =head1 DESCRIPTION
114  
115 Defines the private C<PUBLISH_*> macro namespace, bundled postamble template,
116 target dispatcher module, and fixed MakeMaker argument list used by
117 C<ASPEER::MakeMaker::Markdown::Publish>.
118  
119 The final argument is C<PUBLISH_CONFIG>, the Base64-encoded JSON value derived
120 from C<META_MERGE.x_documentation.publish>.
121  
122  
123 =head1 AUTHOR
124  
125 Andrew Speer L<mailto:andrew.speer@isolutions.com.au>
126  
127  
128 =head1 LICENSE AND COPYRIGHT
129  
130 This software is copyright (c) 2026 by Andrew Speer. It may be distributed
131 under the same terms as Perl itself.
132  
133 =cut
« blib/lib/ASPEER/MakeMaker/Markdown/Publish/MM.pm ↑ Summary blib/lib/ASPEER/MakeMaker/Markdown/Publish.pm »