The following module was proposed for inclusion in the Module List:
modid: Test::Segment
DSLIP: adpOg
description: Track and extract code segments for testing
userid: DCARVELL (David Carvell)
chapterid: 3 (Development_Support)
communities:
similar:
I'm not aware of any modules that do this. (That's why I wrote it.)
rationale:
I thought Test::Segment gives some hint as to what the module does
and I've not found another namespace that conveys it. (Please feel
free to correct me.)
My approach facilitates the testing of hard-to-test code by
allowing the user to extract code, eval it and examine the results.
Of course the user will have to setup/fake whatever the code needs.
The user specifies the code segments by line number ranges or
labels. The segment specs can also store code to be inserted at
specified points. When labels are used, the module tracks changes so
that segments and code insertion points stay consistent.
With the current emphasis on testing, I believe this could be a
valuable tool, especially in situations involving older code-bases
that were not written with testing in mind.
enteredby: DCARVELL (David Carvell)
enteredon: Fri Nov 2 03:11:07 2012 GMT
The resulting entry would be:
Test::
::Segment adpOg Track and extract code segments for testing DCARVELL
Thanks for registering,
--
The PAUSE
PS: The following links are only valid for module list maintainers:
Registration form with editing capabilities:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=5fa00000_a02eaa98efbeecf9&SUBMIT_pause99_add_mod_preview=1
Immediate (one click) registration:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=5fa00000_a02eaa98efbeecf9&SUBMIT_pause99_add_mod_insertit=1
Peek at the current permissions:
https://pause.perl.org/pause/authenquery?pause99_peek_perms_by=me&pause99_peek_perms_query=Test%3A%3ASegment