Lines Matching +full:test +full:- +full:expectations
102 4. Set your expectations on the mock objects (How will they be called? What
107 expectations on it have been satisfied.
114 TEST(BarTest, DoesThis) {
124 // ... other expectations ...
132 gMock has a **built-in default action** for any function that returns `void`,
134 the default-constructed value, if one exists for the given type.
167 ## Setting Expectations {#ExpectCall}
186 By default, expectations can be matched in *any* order. If some or all
187 expectations must be matched in a given order, you can use the
194 gMock will verify the expectations on a mock object when it is destructed, or
200 // Verifies and removes the expectations on mock_obj;
204 // Verifies and removes the expectations on mock_obj;
210 Do not set new expectations after verifying and clearing a mock after its use.
211 Setting expectations after code that exercises the mock has undefined behavior.
212 See [Using Mocks in Tests](gmock_for_dummies.md#using-mocks-in-tests) for more
239 | :----------------------------- | :---------------------------------------- |
240 | `--gmock_catch_leaked_mocks=0` | Don't report leaked mock objects as failures. |
241 | `--gmock_verbose=LEVEL` | Sets the default verbosity level (`info`, `warning`, or `error`) of Goo…