Awncorp/Role.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::Role;
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::Role
23  
24 =cut
25  
26 =head1 ABSTRACT
27  
28 Stencil Generator for Roles
29  
30 =cut
31  
32 =head1 SYNOPSIS
33  
34 use Stencil::Source::Awncorp::Role;
35  
36 my $s = Stencil::Source::Awncorp::Role->new;
37  
38 =cut
39  
40 =head1 DESCRIPTION
41  
42 This package provides a L<Stencil> generator for L<Data::Object::Role> 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 integrates:
52 - MyApp::Role::Doable
53  
54 attributes:
55 - is: ro
56 name: name
57 type: Str
58 form: req
59  
60 operations:
61 - from: role
62 make: lib/MyApp.pm
63 - from: role-test
64 make: t/MyApp.t
65  
66 scenarios:
67 - name: exports
68 desc: exporting the following functions
69  
70 functions:
71 - name: handle_a
72 args: "(Str $key) : Any"
73 desc: executes something which triggers something else
74  
75 methods:
76 - name: handle_b
77 args: "(Str $key) : Any"
78 desc: executes something which triggers something else
79  
80 routines:
81 - name: handle_c
82 args: "(Str $key) : Any"
83 desc: executes something which triggers something else
84  
85 =cut
86  
87 =head1 INHERITS
88  
89 This package inherits behaviors from:
90  
91 L<Stencil::Source>
92  
93 =cut
94  
95 =head1 LIBRARIES
96  
97 This package uses type constraints from:
98  
99 L<Types::Standard>
100  
101 =cut
102  
103 =head1 AUTHOR
104  
105 Al Newkirk, C<awncorp@cpan.org>
106  
107 =head1 LICENSE
108  
109 Copyright (C) 2011-2019, Al Newkirk, et al.
110  
111 This is free software; you can redistribute it and/or modify it under the terms
112 of the The Apache License, Version 2.0, as elucidated in the L<"license
113 file"|https://github.com/iamalnewkirk/stencil-source-awncorp/blob/master/LICENSE>.
114  
115 =head1 PROJECT
116  
117 L<Wiki|https://github.com/iamalnewkirk/stencil-source-awncorp/wiki>
118  
119 L<Project|https://github.com/iamalnewkirk/stencil-source-awncorp>
120  
121 L<Initiatives|https://github.com/iamalnewkirk/stencil-source-awncorp/projects>
122  
123 L<Milestones|https://github.com/iamalnewkirk/stencil-source-awncorp/milestones>
124  
125 L<Contributing|https://github.com/iamalnewkirk/stencil-source-awncorp/blob/master/CONTRIBUTE.md>
126  
127 L<Issues|https://github.com/iamalnewkirk/stencil-source-awncorp/issues>
128  
129 =cut
130  
131 __DATA__