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

DESCRIPTION

9       The Test::Inline::Extract package extracts content interesting to
10       Test::Inline from source files.
11

METHODS

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

TO DO

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

SUPPORT

42       See the main SUPPORT section.
43

AUTHOR

45       Adam Kennedy <adamk@cpan.org>, <http://ali.as/>
46
48       Copyright 2004 - 2007 Adam Kennedy.
49
50       This program is free software; you can redistribute it and/or modify it
51       under the same terms as Perl itself.
52
53       The full text of the license can be found in the LICENSE file included
54       with this module.
55
56
57
58perl v5.8.8                       2007-08-17          Test::Inline::Extract(3)
Impressum