Commit graph

6 commits

Author SHA1 Message Date
Colin Kuskie
c6bde7eed9 By default, all Log::Log4Perl calls are mocked so that they can
be intercepted and tested.
Reworked Session/ErrorHandler.t to take account of this.
Updated Stow test coverage to 100%.
2007-04-06 22:50:53 +00:00
Colin Kuskie
850abf9b6d setup code for showDebug test 2006-11-28 16:58:21 +00:00
Colin Kuskie
2843dd195b update ErrorHandler test to work from either . or sbin 2006-11-22 21:59:07 +00:00
Colin Kuskie
a0d2326f9c Found and fixed a bug in ErrorHandler, canShowPerformanceIndicators.
It didn't work with CIDR format IP addresses.  I cannabilized the
code from canShowDebug and refactored it into its own method,
canShowBasedOnIP.  Both canShowDebug and canShowPerformanceIndicators call this.
Updated the docs for the debugIp setting to note that it's used for both
showDebug and showPerformanceIndicators.
Added about 20 more tests to ErrorHandler.t.  Only the two hard methods are
left, fatal (which closes the session at the end) and showDebug, which is
validating a ton of output.
2006-11-21 03:50:15 +00:00
Colin Kuskie
9c6f2c8b09 tests for audit, security which wrap info and warn 2006-11-20 05:28:53 +00:00
Colin Kuskie
648d7d0008 beginning of tests for ErrorHandler 2006-11-20 04:58:31 +00:00