background image
<< Separate Form And Functionality | System call / Power manager example >>
<< Separate Form And Functionality | System call / Power manager example >>
Mock Code
Mock Code
Sometimes you just can't run a piece of code in a test
Maybe there's no network connection
Maybe the test is destructive (system("/sbin/shutdown now"))
Going to the extreme edge of glassbox testing, replacing code
for testing