The following module was proposed for inclusion in the Module List:
description: Track and extract code segments for testing
userid: DCARVELL (David Carvell)
chapterid: 3 (Development_Support)
I'm not aware of any modules that do this. (That's why I wrote it.)
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:
::Segment adpOg Track and extract code segments for testing DCARVELL
Thanks for registering,
PS: The following links are only valid for module list maintainers:
Registration form with editing capabilities:
Immediate (one click) registration:
Peek at the current permissions: