line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
45609
|
use 5.014; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
70
|
|
2
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
420
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=head1 NAME |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
Acme::Github::Test - A test distribution for Github |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 SYNOPSIS |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use 5.014; |
11
|
|
|
|
|
|
|
use Acme::Github::Test; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my $acme = Acme::Github::Test->new( 23 => 'skidoo' ); |
14
|
|
|
|
|
|
|
$acme->freep; |
15
|
|
|
|
|
|
|
$acme->frobulate('barbaz'); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
The L object will accept a list of initializers, but they don't do anything. |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 METHODS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=over 4 |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=item * new() |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
This method initializes the object. It can take a list of hash keys and values and store them. Returns |
28
|
|
|
|
|
|
|
the initialized L object. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item * freep() |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
This method prints the string scalar "Freep!" on standard out. It takes no input values. Returns a true |
33
|
|
|
|
|
|
|
value. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=item * frobulate() |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Takes an optional scalar value as input. The value '42' is the default value for this method. Returns the |
38
|
|
|
|
|
|
|
passed value or the default. (That means if you pass 0 or some other untrue scalar value, the return value |
39
|
|
|
|
|
|
|
will be false.) |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=back |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 AUTHOR |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Mark Allen C<< >> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 SEE ALSO |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=over 4 |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item * https://github.com/mrallen1/Acme-Github-Test |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item * https://speakerdeck.com/mrallen1/intro-to-git-for-the-perl-hacker |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=back |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 LICENSE |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Copyright (c) 2012 by Mark Allen |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify it |
62
|
|
|
|
|
|
|
under the terms of the Perl Artistic License (version 1) or the GNU |
63
|
|
|
|
|
|
|
Public License (version 2) |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=cut |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
package Acme::Github::Test 0.03 { |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
sub new { |
72
|
1
|
|
|
1
|
1
|
12
|
my $class = shift; |
73
|
1
|
|
|
|
|
3
|
my @options = @_; |
74
|
1
|
|
|
|
|
5
|
my $self = { @options }; |
75
|
1
|
|
|
|
|
7
|
return bless $self, $class |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
sub freep { |
79
|
1
|
|
|
1
|
1
|
500
|
my $self = shift; |
80
|
|
|
|
|
|
|
|
81
|
1
|
|
|
|
|
17
|
say "Freep!"; |
82
|
|
|
|
|
|
|
} |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
sub frobulate { |
85
|
4
|
|
|
4
|
1
|
8
|
my $self = shift; |
86
|
4
|
|
100
|
|
|
17
|
my $quux = shift // 42; |
87
|
|
|
|
|
|
|
|
88
|
4
|
|
|
|
|
24
|
say "$quux has been frobulated!"; |
89
|
4
|
|
|
|
|
21
|
return $quux; |
90
|
|
|
|
|
|
|
} |
91
|
|
|
|
|
|
|
} |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
1; |