| 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::Strict; | ||
| 11 | 38 | $Test::Apocalypse::Strict::VERSION = '1.006'; | |
| 12 | 38 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 38 | $Test::Apocalypse::Strict::AUTHORITY = 'cpan:APOCAL'; | |
| 14 | } | ||
| 15 | |||
| 16 | # ABSTRACT: Plugin for Test::Strict | ||
| 17 | |||
| 18 | 38 | ▶ | use Test::Strict 0.14; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 37 | ▶ | sub do_test { |
|
Subroutine
do_test: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 21 | # Argh, Test::Strict's TEST_SKIP requires full paths! | ||
| 22 | 37 | my @files = Test::Strict::_all_perl_files(); | |
| 23 | 37 | @files = grep { /(?:Build\.PL|Makefile\.PL|Build)$/ } @files; | |
| 24 | |||
| 25 | # Set some useful stuff | ||
| 26 | 37 | local $Test::Strict::TEST_WARNINGS = 1; # to silence "used only once typo warning" | |
| 27 | 37 | local $Test::Strict::TEST_SKIP = \@files; | |
| 28 | |||
| 29 | 37 | local $Test::Strict::TEST_WARNINGS = 1; | |
| 30 | 37 | local $Test::Strict::TEST_SKIP = \@files; | |
| 31 | |||
| 32 | # Run the test! | ||
| 33 | 37 | all_perl_files_ok(); | |
| 34 | |||
| 35 | 37 | return; | |
| 36 | } | ||
| 37 | |||
| 38 | 38 | 1; | |
| 39 | |||
| 40 | __END__ | ||