File Coverage

blib/lib/Test/Apocalypse/CPANMeta_JSON.pm
Criterion Covered Total %
statement 16 17 94.1
branch 1 2 50.0
condition n/a
subroutine 7 7 100.0
pod 0 1 0.0
total 24 27 88.8


line stmt bran cond sub pod time code
1             #
2             # This file is part of Test-Apocalypse
3             #
4             # This software is copyright (c) 2014 by Apocalypse.
5             #
6             # This is free software; you can redistribute it and/or modify it under
7             # the same terms as the Perl 5 programming language system itself.
8             #
9 73     73   365 use strict; use warnings;
  73     73   73  
  73         2701  
  73         292  
  73         73  
  73         4234  
10             package Test::Apocalypse::CPANMeta_JSON;
11             $Test::Apocalypse::CPANMeta_JSON::VERSION = '1.006';
12             BEGIN {
13 73     73   949 $Test::Apocalypse::CPANMeta_JSON::AUTHORITY = 'cpan:APOCAL';
14             }
15              
16             # ABSTRACT: Plugin for Test::CPAN::Meta
17              
18 73     73   365 use Test::More;
  73         146  
  73         438  
19 73     73   52414 use Test::CPAN::Meta::JSON 0.10;
  73         976667  
  73         438  
20              
21             # We need to make sure there's actually a JSON file in the dist!
22             sub _is_disabled {
23 73 50   73   1241 if ( ! -e 'META.json' ) {
24 0         0 return 'Distro did not come with a META.json file';
25             }
26             }
27              
28             sub do_test {
29 73     73 0 219 meta_json_ok();
30              
31 73         397047 return;
32             }
33              
34             1;
35              
36             __END__
37              
38             =pod
39              
40             =encoding UTF-8
41              
42             =for :stopwords Apocalypse Niebur Ryan
43              
44             =for Pod::Coverage do_test
45              
46             =head1 NAME
47              
48             Test::Apocalypse::CPANMeta_JSON - Plugin for Test::CPAN::Meta
49              
50             =head1 VERSION
51              
52             This document describes v1.006 of Test::Apocalypse::CPANMeta_JSON - released October 25, 2014 as part of Test-Apocalypse.
53              
54             =head1 DESCRIPTION
55              
56             Encapsulates L<Test::CPAN::Meta::JSON> functionality.
57              
58             =head1 SEE ALSO
59              
60             Please see those modules/websites for more information related to this module.
61              
62             =over 4
63              
64             =item *
65              
66             L<Test::Apocalypse|Test::Apocalypse>
67              
68             =back
69              
70             =head1 AUTHOR
71              
72             Apocalypse <APOCAL@cpan.org>
73              
74             =head1 COPYRIGHT AND LICENSE
75              
76             This software is copyright (c) 2014 by Apocalypse.
77              
78             This is free software; you can redistribute it and/or modify it under
79             the same terms as the Perl 5 programming language system itself.
80              
81             The full text of the license can be found in the
82             F<LICENSE> file included with this distribution.
83              
84             =head1 DISCLAIMER OF WARRANTY
85              
86             THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
87             APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
88             HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
89             OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
90             THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
91             PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
92             IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
93             ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
94              
95             IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
96             WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
97             THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
98             GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
99             USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
100             DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
101             PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
102             EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
103             SUCH DAMAGES.
104              
105             =cut