NiceMock Cheat Sheet Code
using ::testing::NiceMock; using ::testing::NaggyMock; using ::testing::StrictMock; NiceMock<MockFoo> nice_foo; NaggyMock<MockFoo> naggy_foo; StrictMock<MockFoo> strict_foo;
A screenshot of C++ testing code showing NiceMock, NaggyMock, and StrictMock variants for MockFoo. The joke is the playful contrast between different mock strictness levels, making it useful as a reaction to someone being nice, naggy, or strict. EN: A screenshot of C++ testing code showing NiceMock, NaggyMock, and StrictMock variants for MockFoo. The joke is the playful contrast between different mock strictness levels, making it useful as a reaction to someone being nice, naggy, or strict.
- @ithueti / 8081 2022-11-02
- Type
- image
- Size
- 528×265 · 25.9 KiB
- Mood
- playful, sarcastic
- Language
- en
- Added