File Coverage

blib/lib/Dist/Zilla/Plugin/MojibakeTests.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             package Dist::Zilla::Plugin::MojibakeTests;
2             # ABSTRACT: Release tests for source encoding
3              
4 1     1   31817 use strict;
  1         3  
  1         43  
5 1     1   5 use warnings qw(all);
  1         2  
  1         47  
6              
7             our $VERSION = '0.7'; # VERSION
8              
9 1     1   386 use Moose;
  0            
  0            
10             extends q(Dist::Zilla::Plugin::InlineFiles);
11              
12             __PACKAGE__->meta->make_immutable;
13             no Moose;
14              
15             1;
16              
17             =pod
18              
19             =encoding UTF-8
20              
21             =head1 NAME
22              
23             Dist::Zilla::Plugin::MojibakeTests - Release tests for source encoding
24              
25             =head1 VERSION
26              
27             version 0.7
28              
29             =head1 SYNOPSIS
30              
31             In F<dist.ini>:
32              
33             [MojibakeTests]
34              
35             =head1 DESCRIPTION
36              
37             This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the following file:
38              
39             xt/release/mojibake.t - a standard Test::Mojibake test
40              
41             =for test_synopsis 1;
42             __END__
43              
44             =head1 AUTHOR
45              
46             Stanislaw Pusep <stas@sysd.org>
47              
48             =head1 COPYRIGHT AND LICENSE
49              
50             This software is copyright (c) 2014 by Stanislaw Pusep.
51              
52             This is free software; you can redistribute it and/or modify it under
53             the same terms as the Perl 5 programming language system itself.
54              
55             =cut
56              
57             __DATA__
58             ___[ xt/release/mojibake.t ]___
59             #!perl
60              
61             use strict;
62             use warnings qw(all);
63              
64             use Test::More;
65              
66             ## no critic (ProhibitStringyEval, RequireCheckingReturnValueOfEval)
67             eval q(use Test::Mojibake);
68             plan skip_all => q(Test::Mojibake required for source encoding testing) if $@;
69              
70             all_files_encoding_ok();