-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: file:///home/david/.svk/local/mirror/dagolden/Test-Filenames/trunk@4210 5eb9f33a-0d21-0410-bbf2-8fdb37bc7dbf
- Loading branch information
Showing
4 changed files
with
68 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,29 @@ | ||
# CPAN::Reporter tests | ||
use strict; | ||
BEGIN{ if (not $] < 5.006) { require warnings; warnings->import } } | ||
|
||
select(STDERR); $|=1; | ||
select(STDOUT); $|=1; | ||
|
||
use Test::More; | ||
use t::Helper; | ||
use t::Frontend; | ||
|
||
#--------------------------------------------------------------------------# | ||
# Bailout if we're on a broken dev version of Test::Harness | ||
#--------------------------------------------------------------------------# | ||
require Test::Harness; | ||
if ( $Test::Harness::VERSION eq "2.99_01" ) { | ||
warn "Detected Test::Harness 2.99_01\n"; | ||
BAIL_OUT("Your Test::Harness conflicts with CPAN::Reporter") | ||
} | ||
my @api = qw( | ||
filename_is | ||
filename_isnt | ||
filename_like | ||
filename_unlike | ||
); | ||
|
||
plan tests => 1 + 2 * @api; | ||
|
||
#--------------------------------------------------------------------------# | ||
|
||
my @api = qw( | ||
configure | ||
grade_PL | ||
grade_make | ||
grade_test | ||
record_command | ||
test | ||
); | ||
require_ok( 'Test::Filename' ); | ||
|
||
my @modules = qw( | ||
CPAN::Reporter | ||
CPAN::Reporter::Config | ||
CPAN::Reporter::History | ||
); | ||
can_ok( 'Test::Filename', $_ ) for @api; | ||
|
||
plan tests => @api + @modules; | ||
package Foo; | ||
|
||
require_ok( $_ ) for @modules; | ||
Test::Filename->import(); | ||
|
||
can_ok( 'CPAN::Reporter', $_ ) for @api; | ||
can_ok( 'Foo', $_ ) for @api; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use strict; | ||
BEGIN{ if (not $] < 5.006) { require warnings; warnings->import } } | ||
|
||
select(STDERR); $|=1; | ||
select(STDOUT); $|=1; | ||
|
||
use Test::More; | ||
|
||
|