Changes for version 0.0.20 - 2006-10-22
- Test::Trap::Builder:
- Backend implementations are now methods, almost layers, not functions.
- Called with the (layer) name, the fileno, and the globref.
- local(*$globref) is now left to the implementation.
- Add method ->trap, implementing trap entry.
- Add exportable methods Run, Next, Exception, Teardown:
- Run runs the user's code;
- Next continues to the next layer;
- Exception raises an internal exception;
- Teardown registers cleanup code.
- Backend implementations are now methods, almost layers, not functions.
- Test::Trap::Builder::TempFile, Test::Trap::Builder::PerlIO:
- Use ->Teardown instead of &DESTROY.
- Add Test::Trap::Builder::SystemSafe.
- Add three test scripts for this.
- Work hard, and make those tests pass on 5.6.2! :-)
- t/03-files.pl: Simpler, less hacky, choice of backend. t/07-subclass.t: Use the core alarm(), not the Time::HiRes one. t/08-fork.t: Remember to wait() on all children. t/99-coverage.t: What I cannot test without hacking. t/*{-no-,-}taint.t:
- Since Windows fork() does not work with taint mode.
- t/*.t, t/*.pl:
- Add comments and refactor into subroutines.
- Replace pass()/fail() with simpler/clearer ok().
Modules
Trap exit codes, exceptions, output, etc.
Backend for building test traps
Output layer backend using PerlIO::scalar
Output layer backend using File::Temp
Output layer backend using File::Temp