/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-spec-builders_test.cc | 83 EXPECT_CALL(incomplete, ByRefFunc(_)).Times(AnyNumber()); in TEST() 277 EXPECT_CALL(a, DoA(5)).Times(0); in TEST() 278 EXPECT_CALL(a, DoA(6)).With(_).Times(0); in TEST() 298 EXPECT_CALL(a, DoA(1)).Times(1).With(_); in TEST() 330 EXPECT_CALL(a, DoA(1)).Times(1).Times(2); in TEST() 344 EXPECT_CALL(a, DoA(1)).InSequence(s).Times(1); in TEST() 375 Expectation e = EXPECT_CALL(a, DoA(1)).Times(AnyNumber()); in TEST() 424 .Times(AnyNumber()) in TEST() 529 EXPECT_CALL(b, DoB()).Times(0); in TEST() 530 EXPECT_CALL(b, DoB(1)).Times(AtMost(1)); in TEST() [all …]
|
H A D | gmock_stress_test.cc | 73 EXPECT_CALL(foo, Bar(0)).Times(AtMost(3)); in TestConcurrentMockObjects() 117 EXPECT_CALL(foo, Baz(_, "b")).Times(kRepeat).WillRepeatedly(Return('a')); in TestConcurrentCallsOnSameObject() 160 .Times(2 * kRepeat) in TestPartiallyOrderedExpectationsWithThreads() 163 EXPECT_CALL(foo, Bar(3)).Times(2 * kRepeat).InSequence(s2); in TestPartiallyOrderedExpectationsWithThreads()
|
H A D | gmock_output_test_.cc | 90 EXPECT_CALL(foo_, Bar2(_, _)).Times(2).WillOnce(Return(false)); in TEST_F() 173 EXPECT_CALL(foo_, Bar2(0, _)).Times(2); in TEST_F() 234 EXPECT_CALL(foo_, Bar2(_, _)).Times(2).WillOnce(Return(false)); in TEST_F() 249 EXPECT_CALL(*foo2, Bar3(_, _)).Times(AnyNumber()); in TEST_F()
|
H A D | gmock-matchers-misc_test.cc | 1397 EXPECT_THAT(some_list, Contains(3).Times(2)); in TEST() 1398 EXPECT_THAT(some_list, Contains(2).Times(1)); in TEST() 1399 EXPECT_THAT(some_list, Contains(Ge(2)).Times(3)); in TEST() 1400 EXPECT_THAT(some_list, Contains(Ge(2)).Times(Gt(2))); in TEST() 1401 EXPECT_THAT(some_list, Contains(4).Times(0)); in TEST() 1402 EXPECT_THAT(some_list, Contains(_).Times(4)); in TEST() 1403 EXPECT_THAT(some_list, Not(Contains(5).Times(1))); in TEST() 1404 EXPECT_THAT(some_list, Contains(5).Times(_)); // Times(_) always matches in TEST() 1405 EXPECT_THAT(some_list, Not(Contains(3).Times(1))); in TEST() 1406 EXPECT_THAT(some_list, Contains(3).Times(Not(1))); in TEST() [all …]
|
H A D | gmock-nice-strict_test.cc | 269 EXPECT_CALL(nice_foo, DoThis()).Times(0); in TEST() 378 EXPECT_CALL(naggy_foo, DoThis()).Times(0); in TEST() 458 EXPECT_CALL(strict_foo, DoThis()).Times(0); in TEST()
|
H A D | gmock-function-mocker_test.cc | 313 EXPECT_CALL(this->mock_foo_, Unary(Eq(2))).Times(2).WillOnce(Return(true)); in TYPED_TEST() 421 .Times(2) in TYPED_TEST() 602 EXPECT_CALL(mock, Pop()).Times(AnyNumber()); in TYPED_TEST() 691 EXPECT_CALL(mock, Pop()).Times(AnyNumber()); in TYPED_TEST() 962 EXPECT_CALL(Foo(), foo()).Times(0); in TEST()
|
/freebsd/cddl/usr.sbin/zfsd/tests/ |
H A D | zfsd_unittest.cc | 413 EXPECT_CALL(*mock_event, ProcessPoolEvent()).Times(1); in TEST_F() 507 .Times(::testing::Exactly(0)); in TEST_F() 535 .Times(::testing::AtMost(1)) in TEST_F() 601 .Times(::testing::AtMost(1)) in TEST_F() 650 .Times(::testing::AtMost(1)) in TEST_F() 785 .Times(::testing::Exactly(0)); in TEST_F() 801 .Times(::testing::Exactly(1)) in TEST_F() 822 .Times(::testing::Exactly(1)) in TEST_F() 825 .Times(::testing::Exactly(1)) in TEST_F() 828 .Times(::testing::Exactly(0)); in TEST_F() [all …]
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | forget.cc | 71 .Times(3) in TEST_F() 109 .Times(2) in TEST_F() 126 .Times(2) in TEST_F()
|
H A D | default_permissions_privileged.cc | 66 ).Times(0); in SetUp() 79 ).Times(times) in expect_getattr()
|
H A D | utils.cc | 175 ).Times(AnyNumber()) in SetUp() 189 ).Times(AnyNumber()) in SetUp() 238 ).Times(times) in expect_fallocate() 251 ).Times(times) in expect_flush() 307 .Times(times) in expect_lookup() 325 .Times(times) in expect_lookup_7_8() 347 ).Times(times) in expect_open()
|
H A D | unlink.cc | 44 .Times(times) in expect_lookup() 180 ).Times(0); in TEST_F()
|
H A D | create.cc | 141 ).Times(0); in TEST_F() 166 ).Times(2) in TEST_F() 306 EXPECT_LOOKUP(FUSE_ROOT_ID, RELPATH).Times(1) in TEST_F() 404 ).Times(AtMost(1)) in TEST_F()
|
H A D | lookup.cc | 138 .Times(2) in TEST_F() 359 .Times(1) in TEST_F() 376 .Times(2) in TEST_F() 399 .Times(2) in TEST_F() 524 ).Times(AtMost(1)) in TEST_F()
|
H A D | allow_other.cc | 118 ).Times(1) in TEST_F() 167 ).Times(AnyNumber()) in TEST_F()
|
H A D | access.cc | 70 ).Times(0); in expect_noaccess() 295 ).Times(0); in TEST_F()
|
H A D | default_permissions.cc | 68 ).Times(0); in SetUp() 138 ).Times(times) in expect_getattr() 401 ).Times(0); in TEST_F() 463 ).Times(0); in TEST_F() 1076 .Times(AnyNumber()) in TEST_F() 1266 ).Times(0); in TEST_F() 1321 ).Times(0); in TEST_F() 1385 ).Times(0); in TEST_F() 1407 ).Times(0); in TEST_F() 1522 .Times(AnyNumber()) in TEST_F()
|
H A D | fsync.cc | 68 ).Times(times) in expect_fsync() 154 ).Times(0); in TEST_F()
|
H A D | lseek.cc | 141 ).Times(2) in TEST_F() 170 ).Times(2) in TEST_F() 327 ).Times(0); in TEST_F()
|
H A D | mkdir.cc | 130 .Times(1) in TEST_F() 239 ).Times(AtMost(1)) in TEST_F()
|
H A D | open.cc | 301 ).Times(1) in TEST_F() 329 ).Times(1) in TEST_F()
|
H A D | rmdir.cc | 46 .Times(times) in expect_lookup()
|
H A D | copy_file_range.cc | 55 ).Times(AtMost(1)) in expect_maybe_lseek() 67 ).Times(times) in expect_open() 422 ).Times(0); in TEST_F() 721 ).Times(0); in TEST_F()
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | mocking.md | 81 .Times(cardinality) // Can be used at most once 121 #### Times {#EXPECT_CALL.Times} 123 `.Times(`*`cardinality`*`)` 138 If the `Times` clause is omitted, GoogleTest infers the cardinality as follows: 142 cardinality is `Times(1)`. 144 *n* >= 1, the inferred cardinality is `Times(n)`. 146 *n* >= 0, the inferred cardinality is `Times(AtLeast(n))`. 148 The `Times` clause can be used at most once on an expectation. 234 `Times` is not specified. See [`Times`](#EXPECT_CALL.Times). 268 when `Times` is not specified. See [`Times`](#EXPECT_CALL.Times). [all …]
|
/freebsd/contrib/googletest/docs/ |
H A D | gmock_for_dummies.md | 235 .Times(AtLeast(1)); 297 .Times(cardinality) 309 .Times(cardinality) 330 .Times(5) 402 ### Cardinalities: How Many Times Will It Be Called? 404 The first clause we can specify following an `EXPECT_CALL()` is `Times()`. We 410 An interesting special case is when we say `Times(0)`. You may have guessed - it 419 The `Times()` clause can be omitted. **If you omit `Times()`, gMock will infer 423 `EXPECT_CALL()`, the inferred cardinality is `Times(1)`. 425 1, the cardinality is `Times(n)`. [all …]
|
H A D | gmock_cheat_sheet.md | 122 .Times(3) 147 EXPECT_CALL(mock_buzzer_, MakeBuzz("hello")).Times(AnyNumber()); 181 See the [`Times` clause](reference/mocking.md#EXPECT_CALL.Times) of
|