Perl::PrereqScanner::Scanner::TestNeeds - scan for modules loaded with Test::Needs
Version 0.001
use Perl::PrereqScanner;
my $scanner = Perl::PrereqScanner->new( { extra_scanners => ['TestNeeds'] } );
my $prereqs = $scanner->scan_ppi_document($ppi_doc);
my $prereqs = $scanner->scan_file($file_path);
my $prereqs = $scanner->scan_string($perl_code);
my $prereqs = $scanner->scan_module($module_name);
This is a scanner for Perl::PrereqScanner that finds modules used with Test::Needs.
Note: The scanner currently does not detect modules loaded with the
test_needs
sub, only modules used with a use statement are detected.
use Test::Needs 'Some::Module';
Perl::PrereqScanner, Test::Needs
Please report any bugs or feature requests through the issue tracker at https://github.com/skirmess/Perl-PrereqScanner-Scanner-TestNeeds/issues. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/skirmess/Perl-PrereqScanner-Scanner-TestNeeds
git clone https://github.com/skirmess/Perl-PrereqScanner-Scanner-TestNeeds.git
Sven Kirmess sven.kirmess@kzone.ch