Test::Inline::Extract(3pm)

Test::Inline::Extract3pm

Extract relevant pod sections from source code.

Version

version 2.214

Overview

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 or "undef" 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 of "Test::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 <https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Inline> (or [email protected] <mailto:[email protected]>).

Releases

10 releases since Debian 4.0 (Etch); the text changed 6 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9–10
  7. 11–13

Author

Adam Kennedy <[email protected]>

From libtest-inline-perl 2.214-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.