Home
last modified time | relevance | path

Searched refs:Times (Results 1 – 25 of 58) sorted by relevance

123

/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-spec-builders_test.cc83 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 Dgmock_stress_test.cc73 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 Dgmock_output_test_.cc90 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 Dgmock-matchers-misc_test.cc1397 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 Dgmock-nice-strict_test.cc269 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 Dgmock-function-mocker_test.cc313 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 Dzfsd_unittest.cc413 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 Dforget.cc71 .Times(3) in TEST_F()
109 .Times(2) in TEST_F()
126 .Times(2) in TEST_F()
H A Ddefault_permissions_privileged.cc66 ).Times(0); in SetUp()
79 ).Times(times) in expect_getattr()
H A Dutils.cc175 ).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 Dunlink.cc44 .Times(times) in expect_lookup()
180 ).Times(0); in TEST_F()
H A Dcreate.cc141 ).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 Dlookup.cc138 .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 Dallow_other.cc118 ).Times(1) in TEST_F()
167 ).Times(AnyNumber()) in TEST_F()
H A Daccess.cc70 ).Times(0); in expect_noaccess()
295 ).Times(0); in TEST_F()
H A Ddefault_permissions.cc68 ).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 Dfsync.cc68 ).Times(times) in expect_fsync()
154 ).Times(0); in TEST_F()
H A Dlseek.cc141 ).Times(2) in TEST_F()
170 ).Times(2) in TEST_F()
327 ).Times(0); in TEST_F()
H A Dmkdir.cc130 .Times(1) in TEST_F()
239 ).Times(AtMost(1)) in TEST_F()
H A Dopen.cc301 ).Times(1) in TEST_F()
329 ).Times(1) in TEST_F()
H A Drmdir.cc46 .Times(times) in expect_lookup()
H A Dcopy_file_range.cc55 ).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 Dmocking.md81 .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 Dgmock_for_dummies.md235 .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 Dgmock_cheat_sheet.md122 .Times(3)
147 EXPECT_CALL(mock_buzzer_, MakeBuzz("hello")).Times(AnyNumber());
181 See the [`Times` clause](reference/mocking.md#EXPECT_CALL.Times) of

123