blib/lib/Dist/Zilla/Plugin/MojibakeTests.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 84.0% 21 / 25 CC 1 SCAR 1.8
CC
1
Cov
89%
register_prereqs
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
↑ Summary
1 package Dist::Zilla::Plugin::MojibakeTests;
2 # ABSTRACT: Author tests for source encoding
3  
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings qw(all);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 our $VERSION = '0.8'; # VERSION
8  
9 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 extends q(Dist::Zilla::Plugin::InlineFiles);
11 2 with 'Dist::Zilla::Role::PrereqSource';
12  
13  
14 0 ▶sub register_prereqs {
Subroutine register_prereqs: not called CC=1 SCAR=6.9
Pod undocumented
15 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 2 __PACKAGE__->meta->make_immutable;
26 2 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 2 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__
↑ Summary