Home
last modified time | relevance | path

Searched refs:call_count (Results 1 – 25 of 41) sorted by relevance

12

/third_party/googletest/googlemock/include/gmock/
Dgmock-cardinalities.h77 virtual bool IsSatisfiedByCallCount(int call_count) const = 0;
81 virtual bool IsSaturatedByCallCount(int call_count) const = 0;
107 bool IsSatisfiedByCallCount(int call_count) const { in IsSatisfiedByCallCount() argument
108 return impl_->IsSatisfiedByCallCount(call_count); in IsSatisfiedByCallCount()
113 bool IsSaturatedByCallCount(int call_count) const { in IsSaturatedByCallCount() argument
114 return impl_->IsSaturatedByCallCount(call_count); in IsSaturatedByCallCount()
119 bool IsOverSaturatedByCallCount(int call_count) const { in IsOverSaturatedByCallCount() argument
120 return impl_->IsSaturatedByCallCount(call_count) && in IsOverSaturatedByCallCount()
121 !impl_->IsSatisfiedByCallCount(call_count); in IsOverSaturatedByCallCount()
Dgmock-spec-builders.h814 int call_count() const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { in call_count() function
1182 const int count = call_count(); in GetCurrentAction()
/third_party/googletest/googlemock/src/
Dgmock-cardinalities.cc75 bool IsSatisfiedByCallCount(int call_count) const override { in IsSatisfiedByCallCount()
76 return min_ <= call_count && call_count <= max_; in IsSatisfiedByCallCount()
79 bool IsSaturatedByCallCount(int call_count) const override { in IsSaturatedByCallCount()
80 return call_count >= max_; in IsSaturatedByCallCount()
Dgmock-spec-builders.cc197 Cardinality::DescribeActualCallCountTo(call_count(), os); in DescribeCallCountTo()
/third_party/python/Lib/test/
Dtest_script_helper.py48 self.assertEqual(1, mock_popen.call_count)
49 self.assertEqual(1, mock_ire_func.call_count)
92 self.assertEqual(1, mock_check_call.call_count)
101 self.assertEqual(1, mock_check_call.call_count)
110 self.assertEqual(1, mock_check_call.call_count)
121 self.assertEqual(0, mock_check_call.call_count)
Dtest_dataclasses.py1228 self.assertEqual(factory.call_count, 1)
1230 self.assertEqual(factory.call_count, 2)
1243 self.assertEqual(factory.call_count, 1)
1245 self.assertEqual(factory.call_count, 1)
1247 self.assertEqual(factory.call_count, 2)
2977 self.assertEqual(d.__set_name__.call_count, 0)
2990 self.assertEqual(D.__set_name__.call_count, 1)
/third_party/node/deps/v8/src/compiler/
Dwasm-inlining.h69 int call_count; member
76 if (c1.call_count > c2.call_count) return false; in operator()
77 if (c2.call_count > c1.call_count) return true; in operator()
Dwasm-inlining.cc113 int call_count = GetCallCount(call); in ReduceCall() local
119 CandidateInfo candidate{call, inlinee_index, call_count, in ReduceCall()
140 candidate.call_count, candidate.wire_byte_size, decision); in Trace()
156 if (candidate.call_count < min_count_for_inlining) { in Finalize()
/third_party/python/Lib/idlelib/idle_test/
Dtest_squeezer.py153 self.assertEqual(orig_write.call_count, 1)
167 self.assertEqual(orig_write.call_count, 1)
182 self.assertEqual(orig_write.call_count, 1)
192 self.assertEqual(orig_write.call_count, 0)
342 self.assertEqual(MockHovertip.call_count, 1)
373 self.assertEqual(squeezer.expandingbuttons.remove.call_count, 1)
427 self.assertEqual(expandingbutton.clipboard_clear.call_count, 1)
428 self.assertEqual(expandingbutton.clipboard_append.call_count, 1)
443 self.assertEqual(mock_view_text.call_count, 1)
459 self.assertEqual(mock_menu.add_command.call_count,
Dtest_colorizer.py363 eq(mock_recmain.call_count, 1)
373 eq(mock_recmain.call_count, 2)
Dtest_config.py320 self.assertEqual(m.call_count, len(conf.userCfg))
332 eq(_warn.call_count, 4)
/third_party/node/test/js-native-api/test_reference_double_free/
Dtest_reference_double_free.c16 size_t* call_count = hint; in NoDeleteDestructor() local
19 if ((*call_count) > 0) abort(); in NoDeleteDestructor()
20 *call_count = ((*call_count) + 1); in NoDeleteDestructor()
/third_party/node/deps/v8/tools/testrunner/testproc/
Dvariant_test.py127 load_results, call_count = self._simulate_proc(variants)
130 self.assertEqual(call_count, 3)
140 loaded_tests, call_count = self._simulate_proc(variants)
143 self.assertEqual(call_count, 1)
/third_party/node/deps/v8/src/objects/
Dfeedback-vector.cc959 Object call_count = GetFeedbackExtra()->cast<Object>(); in GetCallCount() local
960 CHECK(call_count.IsSmi()); in GetCallCount()
961 uint32_t value = static_cast<uint32_t>(Smi::ToInt(call_count)); in GetCallCount()
968 Object call_count = GetFeedbackExtra()->cast<Object>(); in SetSpeculationMode() local
969 CHECK(call_count.IsSmi()); in SetSpeculationMode()
970 uint32_t count = static_cast<uint32_t>(Smi::ToInt(call_count)); in SetSpeculationMode()
982 Object call_count = GetFeedbackExtra()->cast<Object>(); in GetSpeculationMode() local
983 CHECK(call_count.IsSmi()); in GetSpeculationMode()
984 uint32_t value = static_cast<uint32_t>(Smi::ToInt(call_count)); in GetSpeculationMode()
991 Object call_count = GetFeedbackExtra()->cast<Object>(); in GetCallFeedbackContent() local
[all …]
/third_party/python/Lib/unittest/test/testmock/
Dtestwith.py136 self.assertEqual(patch2.call_count, 1)
137 self.assertEqual(patch1.call_count, 0)
139 self.assertEqual(patch1.call_count, 1)
Dtestmock.py63 self.assertEqual(mock.call_count, 0,
251 self.assertEqual(mock.call_count, 0, "call_count not reset")
294 self.assertEqual(mock.call_count, 1, "call_count incorrect")
309 self.assertEqual(mock.call_count, 2, "call_count incorrect")
2204 self.assertEqual(obj.obj_with_bool_func.__bool__.call_count, 0)
/third_party/vulkan-loader/tests/
Dloader_alloc_callback_tests.cpp58 size_t call_count = 0; member in MemoryTracker
80 …if (settings.should_fail_after_set_number_of_calls && call_count == settings.fail_after_calls) ret… in allocate()
81 call_count++; in allocate()
102 …if (size >= original_size && settings.should_fail_after_set_number_of_calls && call_count == setti… in reallocate()
104 call_count++; in reallocate()
175 size_t current_call_count() const noexcept { return call_count; } in current_call_count()
/third_party/python/Lib/unittest/
Dmock.py226 funcopy.call_count = 0
549 call_count = _delegating_property('call_count') variable in NonCallableMock
587 self.call_count = 0
875 if self.call_count != 0:
878 self.call_count,
885 if self.call_count == 0:
893 if not self.call_count == 1:
896 self.call_count,
925 if not self.call_count == 1:
928 self.call_count,
[all …]
/third_party/googletest/googlemock/test/
Dgmock-cardinalities_test.cc393 bool IsSatisfiedByCallCount(int call_count) const override { in IsSatisfiedByCallCount()
394 return (call_count % 2 == 0); in IsSatisfiedByCallCount()
/third_party/python/Lib/test/test_asyncio/
Dtest_threads.py66 self.assertEqual(func.call_count, 10)
Dtest_transports.py36 self.assertEqual(1, writer.call_count)
Dtest_locks.py208 call_count = 0
212 nonlocal call_count
213 call_count += 1
238 self.assertEqual(call_count, 3)
/third_party/python/Lib/sqlite3/test/
Duserfunctions.py317 self.assertEqual(mock.call_count, 2)
328 self.assertEqual(mock.call_count, 1)
/third_party/node/doc/api/
Daddons.md197 call_count(0) {
203 int call_count;
214 data->call_count++;
215 info.GetReturnValue().Set((double)data->call_count);
/third_party/mesa3d/src/gallium/drivers/r600/sb/
Dsb_bc.h453 unsigned call_count:6; member

12