in reply to Coming up with good examples in POD
I usually snag chunks of my test files to use in SYNOPSIS and EXAMPLES sections.
That, or take some test parts and slightly modify them for such a purpose. Your unit test suite should have every imaginable (to you) angled use of your software, and tests should be written before, or as you write code, so A) you know it works, B) it should be literally copy/pasteable and C) so long as the test code never changes, your examples shouldn't have to either.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Coming up with good examples in POD
by Lady_Aleena (Priest) on Jul 28, 2020 at 05:48 UTC | |
by stevieb (Canon) on Aug 01, 2020 at 18:49 UTC |