| 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__ | ||