Mocking
- What is Mocking?
- Test Doubles
- Test Doubles explained
- What is Monkey Patching?
- When is mocking useful?
- Mocking in various situations
- Application using random
- Mock random generator in BEGIN
- Mock random generator Mock::Sub
- Function that (also) writes to STDOUT or STDERR
- Capture STDOUT and STDERR in functions call
- Code with STDIN
- Mock STDIN
- Simple game to test
- Test simple game (small)
- Test simple game (big)
- Test simple game (exact)
- Exercise: test game
- Testing time-dependent module
- Module with operation based on date
- Mocking fixed absolute time
- Module with session timeout
- Mocking relative Time
- Mocking class
- Application using the class
- Testing the 3rd party class
- Testing our app using the 3rd party class
- Testing our app mocking the 3rd party class
- Mocking function of external web call
- Test the application end-to-end
- Mocked web test
- Mocking to reproduce error in our function
- Mocking exception
- Using MetaCPAN::Client
- Mocking MetaCPAN::Client
- Override printing functions (mocking)
- Monkey Patching
- Test STDIN