Skip to content

Commit 6eb225c

Browse files
Abseil Teamcopybara-github
Abseil Team
authored andcommitted
Add anchor for expectation ordering note
PiperOrigin-RevId: 606736565 Change-Id: Ifad0b34e1deeec1374377d733375c6210896d0d3
1 parent b75ecf1 commit 6eb225c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/gmock_for_dummies.md

+2
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ happen. Therefore it's a good idea to turn on the heap checker in your tests
261261
when you allocate mocks on the heap. You get that automatically if you use the
262262
`gtest_main` library already.
263263

264+
###### Expectation Ordering
265+
264266
**Important note:** gMock requires expectations to be set **before** the mock
265267
functions are called, otherwise the behavior is **undefined**. Do not alternate
266268
between calls to `EXPECT_CALL()` and calls to the mock functions, and do not set

0 commit comments

Comments
 (0)