| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
2
|
|
|
2
|
|
1980100
|
use 5.008; |
|
|
2
|
|
|
|
|
7
|
|
|
2
|
2
|
|
|
2
|
|
10
|
use strict; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
53
|
|
|
3
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
129
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Dist::Zilla::Plugin::Test::Synopsis; |
|
6
|
|
|
|
|
|
|
# ABSTRACT: Author tests for synopses |
|
7
|
|
|
|
|
|
|
our $VERSION = '2.000007'; # VERSION |
|
8
|
2
|
|
|
2
|
|
10
|
use Moose; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
|
|
extends 'Dist::Zilla::Plugin::InlineFiles'; |
|
10
|
|
|
|
|
|
|
with 'Dist::Zilla::Role::PrereqSource'; |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# Register the test prereqs as "develop requires" |
|
15
|
|
|
|
|
|
|
# so they will be listed in "dzil listdeps --author" |
|
16
|
|
|
|
|
|
|
sub register_prereqs { |
|
17
|
2
|
|
|
2
|
0
|
91244
|
my ($self) = @_; |
|
18
|
|
|
|
|
|
|
|
|
19
|
2
|
|
|
|
|
56
|
$self->zilla->register_prereqs( |
|
20
|
|
|
|
|
|
|
{ |
|
21
|
|
|
|
|
|
|
type => 'requires', |
|
22
|
|
|
|
|
|
|
phase => 'develop', |
|
23
|
|
|
|
|
|
|
}, |
|
24
|
|
|
|
|
|
|
'Test::Synopsis' => '0', |
|
25
|
|
|
|
|
|
|
); |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
30
|
2
|
|
|
2
|
|
9464
|
no Moose; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
8
|
|
|
31
|
|
|
|
|
|
|
1; |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=pod |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=encoding UTF-8 |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 NAME |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Dist::Zilla::Plugin::Test::Synopsis - Author tests for synopses |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 VERSION |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
version 2.000007 |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=for test_synopsis BEGIN { die "SKIP: synopsis isn't perl code" } |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
In C<dist.ini>: |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
[Test::Synopsis] |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the |
|
56
|
|
|
|
|
|
|
following file: |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
xt/author/synopsis.t - a standard Test::Synopsis test |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 AVAILABILITY |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
The project homepage is L<http://metacpan.org/release/Dist-Zilla-Plugin-Test-Synopsis/>. |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
The latest version of this module is available from the Comprehensive Perl |
|
65
|
|
|
|
|
|
|
Archive Network (CPAN). Visit L<http://www.perl.com/CPAN/> to find a CPAN |
|
66
|
|
|
|
|
|
|
site near you, or see L<https://metacpan.org/module/Dist::Zilla::Plugin::Test::Synopsis/>. |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 SOURCE |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
The development version is on github at L<http://github.com/doherty/Dist-Zilla-Plugin-Test-Synopsis> |
|
71
|
|
|
|
|
|
|
and may be cloned from L<git://github.com/doherty/Dist-Zilla-Plugin-Test-Synopsis.git> |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
You can make new bug reports, and view existing ones, through the |
|
76
|
|
|
|
|
|
|
web interface at L<https://github.com/doherty/Dist-Zilla-Plugin-Test-Synopsis/issues>. |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 AUTHORS |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=over 4 |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=item * |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Marcel Grünauer <marcel@cpan.org> |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=item * |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Mike Doherty <doherty@cpan.org> |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=item * |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Olivier Mengué <dolmen@cpan.org> |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=back |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
This software is copyright (c) 2010 by Mike Doherty. |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
101
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=cut |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
__DATA__ |
|
106
|
|
|
|
|
|
|
___[ xt/author/synopsis.t ]___ |
|
107
|
|
|
|
|
|
|
#!perl |
|
108
|
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
use Test::Synopsis; |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
all_synopsis_ok(); |