Searched refs:WithArgs (Results 1 – 6 of 6) sorted by relevance
| /freebsd-13.1/contrib/googletest/googlemock/test/ |
| H A D | gmock-generated-actions_test.cc | 63 using testing::WithArgs; 292 WithArgs<0, 2>(Invoke(Binary)); in TEST() 300 WithArgs<0, 2, 3>(Invoke(Ternary)); in TEST() 308 a = WithArgs<4, 3, 1, 0>(Invoke(Concat4)); in TEST() 317 a = WithArgs<4, 3, 2, 1, 0>(Invoke(Concat5)); in TEST() 326 WithArgs<0, 1, 2, 2, 1, 0>(Invoke(Concat6)); in TEST() 334 WithArgs<0, 1, 2, 3, 2, 1, 0>(Invoke(Concat7)); in TEST() 385 WithArgs<0, 1, 2>(Invoke(Ternary)); in TEST() 392 WithArgs<1, 1, 1, 1>(Invoke(SumOf4)); in TEST() 399 WithArgs<1, 0>(Invoke(Binary)); in TEST() [all …]
|
| H A D | gmock_link_test.h | 182 using testing::WithArgs; 371 .WillOnce(WithArgs<0>(Invoke(&InvokeHelper::StaticVoidFromString))); in TEST()
|
| /freebsd-13.1/contrib/googletest/googlemock/include/gmock/ |
| H A D | gmock-generated-actions.h | 701 WithArgs(const InnerAction& action) { in WithArgs() function 707 WithArgs(const InnerAction& action) { in WithArgs() function 713 WithArgs(const InnerAction& action) { in WithArgs() function 719 WithArgs(const InnerAction& action) { in WithArgs() function 725 WithArgs(const InnerAction& action) { in WithArgs() function 731 WithArgs(const InnerAction& action) { in WithArgs() function 738 WithArgs(const InnerAction& action) { in WithArgs() function 746 WithArgs(const InnerAction& action) { in WithArgs() function 754 WithArgs(const InnerAction& action) { in WithArgs() function 763 WithArgs(const InnerAction& action) { in WithArgs() function
|
| H A D | gmock-generated-actions.h.pump | 179 // Implements the WithArgs action. 259 // WithArgs<N1, N2, ..., Nk>(an_action) creates an action that passes 270 WithArgs(const InnerAction& action) {
|
| /freebsd-13.1/contrib/googletest/googlemock/docs/ |
| H A D | CookBook.md | 2085 WithArgs<N1, N2, ..., Nk>(action) 2090 it. Using `WithArgs`, our original example can be written as: 2095 using ::testing::WithArgs; 2098 .WillOnce(WithArgs<0, 2, 3>(Invoke(IsVisibleInQuadrant1))); 2112 …* The inner action used in `WithArgs` and friends does not have to be `Invoke()` -- it can be anyt… 2113 * You can repeat an argument in the argument list if necessary, e.g. `WithArgs<2, 3, 3, 5>(...)`. 2114 * You can change the order of the arguments, e.g. `WithArgs<3, 2, 1>(...)`. 2122 `WithArgs<...>()` can get tedious for people writing the tests. 2126 alternative to `WithArgs` is to declare the uninteresting arguments as 2362 Many built-in actions (`WithArgs`, `WithoutArgs`,`DeleteArg`, `SaveArg`, ...)
|
| H A D | CheatSheet.md | 424 |`WithArgs<N1, N2, ..., Nk>(a)`|Pass the selected (0-based) arguments of the mock function to actio…
|