Faker/Plugin/SoftwareName.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod n/a totaltotal 0.0% 0 / 36 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Faker::Plugin::SoftwareName;
2  
3 use 5.014;
4  
5 use strict;
6 use warnings;
7  
8 use registry;
9 use routines;
10  
11 use Data::Object::Class;
12 use Data::Object::ClassHas;
13  
14 extends 'Data::Object::Plugin';
15  
16 our $VERSION = '1.03'; # VERSION
17  
18 # ATTRIBUTES
19  
20 has 'faker' => (
21 is => 'ro',
22 isa => 'ConsumerOf["Faker::Maker"]',
23 req => 1,
24 );
25  
26 # METHODS
27  
28 method execute() {
29 my $faker = $self->faker;
30  
31 return $faker->process(['software', 'name']);
32 }
33  
34 1;
35  
36 =encoding utf8
37  
38 =head1 NAME
39  
40 Faker::Plugin::SoftwareName
41  
42 =cut
43  
44 =head1 ABSTRACT
45  
46 Software Name Plugin for Faker
47  
48 =cut
49  
50 =head1 SYNOPSIS
51  
52 package main;
53  
54 use Faker;
55 use Faker::Plugin::SoftwareName;
56  
57 my $f = Faker->new;
58 my $p = Faker::Plugin::SoftwareName->new(faker => $f);
59  
60 my $plugin = $p;
61  
62 =cut
63  
64 =head1 DESCRIPTION
65  
66 This package provides methods for generating fake software name data.
67  
68 =cut
69  
70 =head1 INHERITS
71  
72 This package inherits behaviors from:
73  
74 L<Data::Object::Plugin>
75  
76 =cut
77  
78 =head1 ATTRIBUTES
79  
80 This package has the following attributes:
81  
82 =cut
83  
84 =head2 faker
85  
86 faker(ConsumerOf["Faker::Maker"])
87  
88 This attribute is read-only, accepts C<(ConsumerOf["Faker::Maker"])> values, and is required.
89  
90 =cut
91  
92 =head1 METHODS
93  
94 This package implements the following methods:
95  
96 =cut
97  
98 =head2 execute
99  
100 execute() : Str
101  
102 The execute method returns a random fake software name.
103  
104 =over 4
105  
106 =item execute example #1
107  
108 # given: synopsis
109  
110 $p->execute
111  
112 =back
113  
114 =cut
115  
116 =head1 AUTHOR
117  
118 Al Newkirk, C<awncorp@cpan.org>
119  
120 =head1 LICENSE
121  
122 Copyright (C) 2011-2019, Al Newkirk, et al.
123  
124 This is free software; you can redistribute it and/or modify it under the terms
125 of the The Apache License, Version 2.0, as elucidated in the L<"license
126 file"|https://github.com/iamalnewkirk/faker/blob/master/LICENSE>.
127  
128 =head1 ACKNOWLEDGEMENTS
129  
130 Parts of this library were inspired by the following implementations:
131  
132 L<PHP Faker|https://github.com/fzaninotto/Faker>
133  
134 L<Ruby Faker|https://github.com/stympy/faker>
135  
136 L<Python Faker|https://github.com/joke2k/faker>
137  
138 L<JS Faker|https://github.com/Marak/faker.js>
139  
140 L<Elixir Faker|https://github.com/elixirs/faker>
141  
142 =head1 PROJECT
143  
144 L<Wiki|https://github.com/iamalnewkirk/faker/wiki>
145  
146 L<Project|https://github.com/iamalnewkirk/faker>
147  
148 L<Initiatives|https://github.com/iamalnewkirk/faker/projects>
149  
150 L<Milestones|https://github.com/iamalnewkirk/faker/milestones>
151  
152 L<Contributing|https://github.com/iamalnewkirk/faker/blob/master/CONTRIBUTE.md>
153  
154 L<Issues|https://github.com/iamalnewkirk/faker/issues>
155  
156 =cut