Lines Matching refs:WillOnce
84 .WillOnce(action) // Can be used any number of times
140 * If neither [`WillOnce`](#EXPECT_CALL.WillOnce) nor
143 * If there are *n* `WillOnce` clauses and no `WillRepeatedly` clause, where
145 * If there are *n* `WillOnce` clauses and one `WillRepeatedly` clause, where
221 #### WillOnce {#EXPECT_CALL.WillOnce}
223 `.WillOnce(`*`action`*`)`
233 The use of `WillOnce` implicitly sets a cardinality on the expectation when
245 .WillOnce(Return(1))
246 .WillOnce(Return(2))
247 .WillOnce(Return(3));
250 The `WillOnce` clause can be used any number of times on an expectation. Unlike
251 `WillRepeatedly`, the action fed to each `WillOnce` call will be called at most
260 [`WillOnce`](#EXPECT_CALL.WillOnce) clauses, if any, have been performed.
270 If any `WillOnce` clauses have been specified, matching function calls will
281 .WillOnce(Return(42)) // Return 42 on the first call
402 [`WillOnce`](#EXPECT_CALL.WillOnce) and