File Coverage

blib/lib/App/Maisha/Plugin/Test.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 21 21 100.0


line stmt bran cond sub pod time code
1             package App::Maisha::Plugin::Test;
2              
3 7     7   147457 use strict;
  7         17  
  7         191  
4 7     7   32 use warnings;
  7         13  
  7         293  
5              
6             our $VERSION = '0.22';
7              
8             #----------------------------------------------------------------------------
9             # Library Modules
10              
11 7     7   35 use base qw(App::Maisha::Plugin::Base);
  7         12  
  7         1079  
12 7     7   41 use base qw(Class::Accessor::Fast);
  7         11  
  7         1156  
13              
14             #----------------------------------------------------------------------------
15             # Accessors
16              
17             __PACKAGE__->mk_accessors($_) for qw(api users);
18              
19             #----------------------------------------------------------------------------
20             # Public API
21              
22             sub login {
23 1     1 1 3 my ($self,$config) = @_;
24              
25 1         24 $self->api($self);
26 1         8 return 1;
27             }
28              
29             1;
30              
31             __END__
32              
33             =head1 NAME
34              
35             App::Maisha::Plugin::Test - Maisha Test Plugin
36              
37             =head1 SYNOPSIS
38              
39             maisha
40             maisha> use Test
41             use ok
42              
43             =head1 DESCRIPTION
44              
45             App::Maisha::Plugin::Test is used to test Maisha responds correctly when
46             plugins do not support a particular method call.
47              
48             =head1 METHODS
49              
50             =head2 Constructor
51              
52             =over 4
53              
54             =item * new
55              
56             =back
57              
58             =head2 Process Methods
59              
60             =over 4
61              
62             =item * login
63              
64             Login to the service.
65              
66             =back
67              
68             =head2 API Methods
69              
70             There are no API methods for this plugin.
71              
72             =head1 SEE ALSO
73              
74             For further information regarding the commands and configuration, please see
75             the 'maisha' script included with this distribution.
76              
77             L<App::Maisha>
78              
79             =head1 WEBSITES
80              
81             =over 4
82              
83             =item * Main Site: L<http://maisha.grango.org>
84              
85             =item * Git Repo: L<http://github.com/barbie/maisha/tree/master>
86              
87             =item * RT Queue: L<RT: http://rt.cpan.org/Public/Dist/Display.html?Name=App-Maisha>
88              
89             =back
90              
91             =head1 AUTHOR
92              
93             Barbie, <barbie@cpan.org>
94             for Miss Barbell Productions <http://www.missbarbell.co.uk>.
95              
96             =head1 COPYRIGHT AND LICENSE
97              
98             Copyright (C) 2009-2019 by Barbie
99              
100             This distribution is free software; you can redistribute it and/or
101             modify it under the Artistic License v2.
102              
103             =cut