1Test::Inline::Extract(3U)ser Contributed Perl DocumentatiToenst::Inline::Extract(3)
2
3
4
6 Test::Inline::Extract - Extract relevant Pod sections from source code.
7
9 version 2.214
10
12 The Test::Inline::Extract package extracts content interesting to
13 Test::Inline from source files.
14
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
39 - For certain very complex cases, add a more intensive alternative
40 parser based on PPI
41
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
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.36.0 2023-01-20 Test::Inline::Extract(3)