in reply to Re: Extracting/embedding sample files in POD
in thread Extracting/embedding sample files in POD
And in fact that looks like an intended use of POD::Tested, its processor can generate POD or test files from the same marked-up module. (I contacted the author with a comment earlier, can vouch the author is indeed dogfooding.)
My co-workers- the only other people who may look at this code- would not think to look at a separate POD file, but are grateful for good documentation in the module. So I am not going down the road of generating an external POD, even though I now see smooth ways of doing that with all desired features.
And a good-enough work-around would be to simply create the file as part of the test:
Given a file F<test.data> as below... File::Slurp::write_file("test.data",qq<<'END'); Here is data that this function wants END Results in # test continues here
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extracting/embedding sample files in POD
by LanX (Saint) on Feb 17, 2015 at 20:32 UTC | |
by Yary (Pilgrim) on Feb 19, 2015 at 19:47 UTC | |
by LanX (Saint) on Feb 19, 2015 at 22:29 UTC |