<< Replace The Untestable Part
|
Don't leave testing for the QA guys >>
<< Replace The Untestable Part
|
Don't leave testing for the QA guys >>
Forcing Failure
Forcing Failure
●
How will your program react if, say, the database connection
fails?
use DBI;
{
local *DBI::connect = sub {
return 0;
};
...test for graceful failure here...
}
...test for graceful recovery here...