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 The Test::Inline::Extract package extracts content interesting to
10 Test::Inline from source files.
11
13 new $file | \$source
14 The "new" constructor creates a new Extract object. It is passed either
15 a file name from which the source code would be loaded, or a reference
16 to a string that directly contains source code.
17
18 Returns a new "Test::Inline::Extract" object or "undef" on error.
19
20 elements
21 my $elements = $Extract->elements;
22
23 The "elements" method extracts from the Pod any parts of the file that
24 are relevant to the extraction and generation process of
25 "Test::Inline".
26
27 The elements will be either a package statements, or a section of
28 inline unit tests. They will only be returned if there is at least one
29 section of inline unit tests.
30
31 Returns a reference to an array of package strings and sections of
32 inline unit tests. Returns false if there are no sections containing
33 inline unit tests.
34
36 - For certain very complex cases, add a more intensive alternative
37 parser based on PPI
38
40 See the main SUPPORT section.
41
43 Adam Kennedy <adamk@cpan.org>, <http://ali.as/>
44
46 Copyright 2004 - 2013 Adam Kennedy.
47
48 This program is free software; you can redistribute it and/or modify it
49 under the same terms as Perl itself.
50
51 The full text of the license can be found in the LICENSE file included
52 with this module.
53
54
55
56perl v5.32.0 2020-07-28 Test::Inline::Extract(3)