-
-
23 Jan 2021 22:44:04 UTC
- Distribution: Test-Inline
- Module version: 2.214
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (21)
- Testers (112 / 8 / 0)
- Kwalitee
Bus factor: 1- 80.03% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (58.99KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Algorithm::Dependency
- Algorithm::Dependency::Item
- Algorithm::Dependency::Ordered
- Algorithm::Dependency::Source
- Config::Tiny
- File::Find::Rule
- File::Flat
- File::Remove
- File::Spec
- File::Spec::Functions
- File::chmod
- Getopt::Long
- IO::Handle
- List::Util
- Params::Util
- Path::Tiny
- overload
- strict
- vars
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Take me over?
The maintainer of this distribution is looking for someone to take over! If you're interested then please contact them via email.NAME
Test::Inline::Extract - Extract relevant Pod sections from source code.
VERSION
version 2.214
DESCRIPTION
The Test::Inline::Extract package extracts content interesting to Test::Inline from source files.
METHODS
new $file | \$source
The
new
constructor creates a new Extract object. It is passed either a file name from which the source code would be loaded, or a reference to a string that directly contains source code.Returns a new
Test::Inline::Extract
object orundef
on error.elements
my $elements = $Extract->elements;
The
elements
method extracts from the Pod any parts of the file that are relevant to the extraction and generation process ofTest::Inline
.The elements will be either a package statements, or a section of inline unit tests. They will only be returned if there is at least one section of inline unit tests.
Returns a reference to an array of package strings and sections of inline unit tests. Returns false if there are no sections containing inline unit tests.
TO DO
- For certain very complex cases, add a more intensive alternative parser based on PPI
SUPPORT
See the main SUPPORT section.
Bugs may be submitted through the RT bug tracker (or bug-Test-Inline@rt.cpan.org).
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2003 by Adam Kennedy.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Test::Inline, copy and paste the appropriate command in to your terminal.
cpanm Test::Inline
perl -MCPAN -e shell install Test::Inline
For more information on module installation, please visit the detailed CPAN module installation guide.