-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build results of 71219d7 (on master)
- Loading branch information
1 parent
3955048
commit 940deb5
Showing
5 changed files
with
43 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Release history for Perl-PrereqScanner-Scanner-Runtime | ||
|
||
0.001000 2016-04-09T18:01:04Z b57c196 | ||
0.001000 2016-04-09T18:05:02Z 71219d7 | ||
- First version. | ||
|
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use Test::More; | ||
|
||
# ABSTRACT: Basic class load tests | ||
|
||
use Perl::PrereqScanner; | ||
my $scanner = Perl::PrereqScanner->new( extra_scanners => [qw( Class::Load )], ); | ||
my $prereqs = $scanner->scan_string( | ||
q[ | ||
use Class::Load; | ||
$thing->load_class("My::ClassA"); | ||
$thing->try_load_class(q{My::ClassB}); | ||
$thing->load_optional_class('My::ClassC'); | ||
] | ||
)->as_string_hash; | ||
|
||
my $diag_needed; | ||
|
||
$diag_needed = 1 unless ok( !exists $prereqs->{"My::ClassA"}, "ClassA reported" ); | ||
$diag_needed = 1 unless ok( !exists $prereqs->{"My::ClassB"}, "ClassB reported" ); | ||
$diag_needed = 1 unless ok( !exists $prereqs->{"My::ClassC"}, "ClassC reported" ); | ||
|
||
if ($diag_needed) { | ||
diag explain $prereqs; | ||
} | ||
|
||
done_testing; | ||
|
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