Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/googletest/googlemock/test/
H A Dgmock-spec-builders_test.cc277 EXPECT_CALL(a, DoA(5)).Times(0); in TEST()
278 EXPECT_CALL(a, DoA(6)).With(_).Times(0); in TEST()
330 EXPECT_CALL(a, DoA(1)).Times(1).Times(2); in TEST()
424 .Times(AnyNumber()) in TEST()
529 EXPECT_CALL(b, DoB()).Times(0); in TEST()
535 .Times(Between(1, 2)) in TEST()
563 .Times(1) in TEST()
882 EXPECT_CALL(b, DoB(_)).Times(1); in TEST()
884 .Times(AnyNumber()) in TEST()
969 EXPECT_CALL(b, DoB(0)).Times(0); 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()
1401 EXPECT_THAT(some_list, Contains(4).Times(0)); in TEST()
1402 EXPECT_THAT(some_list, Contains(_).Times(4)); in TEST()
1417 m = Contains(3).Times(0); in TEST_P()
1421 m = Contains(3).Times(4); in TEST_P()
1427 m = Contains(2).Times(4); in TEST_P()
1433 m = Contains(GreaterThan(0)).Times(2); in TEST_P()
1437 m = Contains(GreaterThan(10)).Times(Gt(1)); in TEST_P()
[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-14.2/cddl/usr.sbin/zfsd/tests/
H A Dzfsd_unittest.cc504 .Times(::testing::Exactly(0)); in TEST_F()
532 .Times(::testing::AtMost(1)) in TEST_F()
598 .Times(::testing::AtMost(1)) in TEST_F()
647 .Times(::testing::AtMost(1)) in TEST_F()
782 .Times(::testing::Exactly(0)); in TEST_F()
798 .Times(::testing::Exactly(1)) in TEST_F()
819 .Times(::testing::Exactly(1)) in TEST_F()
822 .Times(::testing::Exactly(1)) in TEST_F()
825 .Times(::testing::Exactly(0)); in TEST_F()
827 .Times(::testing::Exactly(0)); in TEST_F()
[all …]
/freebsd-14.2/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 Dallow_other.cc118 ).Times(1) in TEST_F()
167 ).Times(AnyNumber()) 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 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-14.2/contrib/googletest/docs/reference/
H A Dmocking.md82 .Times(cardinality) // Can be used at most once
122 #### Times {#EXPECT_CALL.Times}
124 `.Times(`*`cardinality`*`)`
143 cardinality is `Times(1)`.
145 *n* >= 1, the inferred cardinality is `Times(n)`.
147 *n* >= 0, the inferred cardinality is `Times(AtLeast(n))`.
149 The `Times` clause can be used at most once on an expectation.
235 `Times` is not specified. See [`Times`](#EXPECT_CALL.Times).
269 when `Times` is not specified. See [`Times`](#EXPECT_CALL.Times).
305 .Times(AnyNumber());
[all …]
/freebsd-14.2/contrib/googletest/docs/
H A Dgmock_for_dummies.md235 .Times(AtLeast(1));
295 .Times(cardinality)
307 .Times(cardinality)
328 .Times(5)
417 The `Times()` clause can be omitted. **If you omit `Times()`, gMock will infer
423 1, the cardinality is `Times(n)`.
495 .Times(4)
512 .Times(4)
540 .Times(2);
617 .Times(AnyNumber());
[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