Faker/Plugin/CompanyTagline.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod n/a totaltotal 0.0% 0 / 34 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::CompanyTagline;
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 join ' ',
32 $faker->company_buzzword_type1,
33 $faker->company_buzzword_type2,
34 $faker->company_buzzword_type3;
35 }
36  
37 1;
38  
39 =encoding utf8
40  
41 =head1 NAME
42  
43 Faker::Plugin::CompanyTagline
44  
45 =cut
46  
47 =head1 ABSTRACT
48  
49 Company Tagline Plugin for Faker
50  
51 =cut
52  
53 =head1 SYNOPSIS
54  
55 package main;
56  
57 use Faker;
58 use Faker::Plugin::CompanyTagline;
59  
60 my $f = Faker->new;
61 my $p = Faker::Plugin::CompanyTagline->new(faker => $f);
62  
63 my $plugin = $p;
64  
65 =cut
66  
67 =head1 DESCRIPTION
68  
69 This package provides methods for generating fake company tagline data.
70  
71 =cut
72  
73 =head1 INHERITS
74  
75 This package inherits behaviors from:
76  
77 L<Data::Object::Plugin>
78  
79 =cut
80  
81 =head1 LIBRARIES
82  
83 This package uses type constraints from:
84  
85 L<Types::Standard>
86  
87 =cut
88  
89 =head1 ATTRIBUTES
90  
91 This package has the following attributes:
92  
93 =cut
94  
95 =head2 faker
96  
97 faker(ConsumerOf["Faker::Maker"])
98  
99 This attribute is read-only, accepts C<(ConsumerOf["Faker::Maker"])> values, and is required.
100  
101 =cut
102  
103 =head1 METHODS
104  
105 This package implements the following methods:
106  
107 =cut
108  
109 =head2 execute
110  
111 execute() : Str
112  
113 The execute method returns a random fake company tagline.
114  
115 =over 4
116  
117 =item execute example #1
118  
119 # given: synopsis
120  
121 $p->execute;
122  
123 =back
124  
125 =cut
126  
127 =head1 AUTHOR
128  
129 Al Newkirk, C<awncorp@cpan.org>
130  
131 =head1 LICENSE
132  
133 Copyright (C) 2011-2019, Al Newkirk, et al.
134  
135 This is free software; you can redistribute it and/or modify it under the terms
136 of the The Apache License, Version 2.0, as elucidated in the L<"license
137 file"|https://github.com/iamalnewkirk/faker/blob/master/LICENSE>.
138  
139 =head1 ACKNOWLEDGEMENTS
140  
141 Parts of this library were inspired by the following implementations:
142  
143 L<PHP Faker|https://github.com/fzaninotto/Faker>
144  
145 L<Ruby Faker|https://github.com/stympy/faker>
146  
147 L<Python Faker|https://github.com/joke2k/faker>
148  
149 L<JS Faker|https://github.com/Marak/faker.js>
150  
151 L<Elixir Faker|https://github.com/elixirs/faker>
152  
153 =head1 PROJECT
154  
155 L<Wiki|https://github.com/iamalnewkirk/faker/wiki>
156  
157 L<Project|https://github.com/iamalnewkirk/faker>
158  
159 L<Initiatives|https://github.com/iamalnewkirk/faker/projects>
160  
161 L<Milestones|https://github.com/iamalnewkirk/faker/milestones>
162  
163 L<Contributing|https://github.com/iamalnewkirk/faker/blob/master/CONTRIBUTE.md>
164  
165 L<Issues|https://github.com/iamalnewkirk/faker/issues>
166  
167 =cut