Awncorp/Class.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Stencil::Source::Awncorp::Class;
2  
3 use 5.014;
4  
5 use strict;
6 use warnings;
7  
8 use Data::Object::Class;
9  
10 extends 'Stencil::Source';
11  
12 our $VERSION = '0.01'; # VERSION
13  
14 1;
15  
16  
17  
18 =encoding utf8
19  
20 =head1 NAME
21  
22 Stencil::Source::Awncorp::Class
23  
24 =cut
25  
26 =head1 ABSTRACT
27  
28 Stencil Generator for Classes
29  
30 =cut
31  
32 =head1 SYNOPSIS
33  
34 use Stencil::Source::Awncorp::Class;
35  
36 my $s = Stencil::Source::Awncorp::Class->new;
37  
38 =cut
39  
40 =head1 DESCRIPTION
41  
42 This package provides a L<Stencil> generator for L<Data::Object::Class> based
43 roles and L<Test::Auto> tests. This generator produces the following specification:
44  
45 name: MyApp
46 desc: Doing One Thing Very Well
47  
48 libraries:
49 - MyApp::Types
50  
51 inherits:
52 - MyApp::Parent
53  
54 integrates:
55 - MyApp::Role::Doable
56  
57 attributes:
58 - is: ro
59 name: name
60 type: Str
61 form: req
62  
63 operations:
64 - from: class
65 make: lib/MyApp.pm
66 - from: class-test
67 make: t/MyApp.t
68  
69 scenarios:
70 - name: exports
71 desc: exporting the following functions
72  
73 functions:
74 - name: handler_a
75 args: "(Str $key) : Any"
76 desc: executes something which triggers something else
77  
78 methods:
79 - name: handle_b
80 args: "(Str $key) : Any"
81 desc: executes something which triggers something else
82  
83 routines:
84 - name: handle_c
85 args: "(Str $key) : Any"
86 desc: executes something which triggers something else
87  
88 =cut
89  
90 =head1 INHERITS
91  
92 This package inherits behaviors from:
93  
94 L<Stencil::Source>
95  
96 =cut
97  
98 =head1 LIBRARIES
99  
100 This package uses type constraints from:
101  
102 L<Types::Standard>
103  
104 =cut
105  
106 =head1 AUTHOR
107  
108 Al Newkirk, C<awncorp@cpan.org>
109  
110 =head1 LICENSE
111  
112 Copyright (C) 2011-2019, Al Newkirk, et al.
113  
114 This is free software; you can redistribute it and/or modify it under the terms
115 of the The Apache License, Version 2.0, as elucidated in the L<"license
116 file"|https://github.com/iamalnewkirk/stencil-source-awncorp/blob/master/LICENSE>.
117  
118 =head1 PROJECT
119  
120 L<Wiki|https://github.com/iamalnewkirk/stencil-source-awncorp/wiki>
121  
122 L<Project|https://github.com/iamalnewkirk/stencil-source-awncorp>
123  
124 L<Initiatives|https://github.com/iamalnewkirk/stencil-source-awncorp/projects>
125  
126 L<Milestones|https://github.com/iamalnewkirk/stencil-source-awncorp/milestones>
127  
128 L<Contributing|https://github.com/iamalnewkirk/stencil-source-awncorp/blob/master/CONTRIBUTE.md>
129  
130 L<Issues|https://github.com/iamalnewkirk/stencil-source-awncorp/issues>
131  
132 =cut
133  
134 __DATA__