Apocalypse/DirChecks.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.4% 27 / 28 CC 2 SCAR 2.5
CC
2
Cov
100%
do_test
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Apocalypse/CPANMeta_JSON.pm ↑ Summary Apocalypse/Pod_No404s.pm »
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 38 ▶use strict; use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
10 package Test::Apocalypse::DirChecks;
11 38 $Test::Apocalypse::DirChecks::VERSION = '1.006';
12 38 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
13 38 $Test::Apocalypse::DirChecks::AUTHORITY = 'cpan:APOCAL';
14 }
15  
16 # ABSTRACT: Plugin for Test::Dir
17  
18 38 ▶use Test::More;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 38 ▶use Test::Dir 1.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 37 ▶sub do_test {
Subroutine do_test: called CC=2 SCAR=6.9
Pod undocumented
22 37 my @dirs = qw( lib t examples );
23 37 plan tests => scalar @dirs * 2;
24 37 foreach my $d ( @dirs ) {
25 111 dir_exists_ok( $d, "Directory '$d' exists" );
26 111 ok( -r $d, "Directory '$d' is readable" );
27 }
28  
29 37 return;
30 }
31  
32 38 1;
33  
34 __END__
« Apocalypse/CPANMeta_JSON.pm ↑ Summary Apocalypse/Pod_No404s.pm »