line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dist::Zilla::Plugin::MojibakeTests; |
2
|
|
|
|
|
|
|
# ABSTRACT: Author tests for source encoding |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
23187
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings qw(all); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
55
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.8'; # VERSION |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
5200
|
use Moose; |
|
1
|
|
|
|
|
641837
|
|
|
1
|
|
|
|
|
8
|
|
10
|
|
|
|
|
|
|
extends q(Dist::Zilla::Plugin::InlineFiles); |
11
|
|
|
|
|
|
|
with 'Dist::Zilla::Role::PrereqSource'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub register_prereqs { |
15
|
0
|
|
|
0
|
|
|
my $self = shift; |
16
|
0
|
|
|
|
|
|
return $self->zilla->register_prereqs( |
17
|
|
|
|
|
|
|
{ |
18
|
|
|
|
|
|
|
type => 'requires', |
19
|
|
|
|
|
|
|
phase => 'develop', |
20
|
|
|
|
|
|
|
}, |
21
|
|
|
|
|
|
|
'Test::Mojibake' => 0, |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
26
|
1
|
|
|
1
|
|
7364
|
no Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=encoding UTF-8 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Dist::Zilla::Plugin::MojibakeTests - Author tests for source encoding |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
version 0.8 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 SYNOPSIS |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
In F<dist.ini>: |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
[MojibakeTests] |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 DESCRIPTION |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the following file: |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
xt/author/mojibake.t - a standard Test::Mojibake test |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=for Pod::Coverage register_prereqs |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=for test_synopsis 1; |
57
|
|
|
|
|
|
|
__END__ |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 AUTHOR |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Stanislaw Pusep <stas@sysd.org> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Stanislaw Pusep. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
68
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
__DATA__ |
73
|
|
|
|
|
|
|
___[ xt/author/mojibake.t ]___ |
74
|
|
|
|
|
|
|
#!perl |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
use strict; |
77
|
|
|
|
|
|
|
use warnings qw(all); |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
use Test::More; |
80
|
|
|
|
|
|
|
use Test::Mojibake; |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
all_files_encoding_ok(); |