1Test::Inline::Extract(3U)ser Contributed Perl DocumentatiToenst::Inline::Extract(3)
2
3
4

NAME

6       Test::Inline::Extract - Extract relevant Pod sections from source code.
7

VERSION

9       version 2.214
10

DESCRIPTION

12       The Test::Inline::Extract package extracts content interesting to
13       Test::Inline from source files.
14

METHODS

16   new $file | \$source
17       The "new" constructor creates a new Extract object. It is passed either
18       a file name from which the source code would be loaded, or a reference
19       to a string that directly contains source code.
20
21       Returns a new "Test::Inline::Extract" object or "undef" on error.
22
23   elements
24         my $elements = $Extract->elements;
25
26       The "elements" method extracts from the Pod any parts of the file that
27       are relevant to the extraction and generation process of
28       "Test::Inline".
29
30       The elements will be either a package statements, or a section of
31       inline unit tests. They will only be returned if there is at least one
32       section of inline unit tests.
33
34       Returns a reference to an array of package strings and sections of
35       inline unit tests. Returns false if there are no sections containing
36       inline unit tests.
37

TO DO

39       - For certain very complex cases, add a more intensive alternative
40       parser based on PPI
41

SUPPORT

43       See the main SUPPORT section.
44
45       Bugs may be submitted through the RT bug tracker
46       <https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Inline> (or
47       bug-Test-Inline@rt.cpan.org <mailto:bug-Test-Inline@rt.cpan.org>).
48

AUTHOR

50       Adam Kennedy <adamk@cpan.org>
51
53       This software is copyright (c) 2003 by Adam Kennedy.
54
55       This is free software; you can redistribute it and/or modify it under
56       the same terms as the Perl 5 programming language system itself.
57
58
59
60perl v5.32.1                      2021-04-27          Test::Inline::Extract(3)
Impressum