Searched refs:MockClass (Results 1 – 7 of 7) sorted by relevance
72 template <class MockClass>74 template <class MockClass>76 template <class MockClass>135 template <class MockClass>137 : private internal::NiceMockImpl<MockClass>,138 public MockClass {140 static_assert(!internal::HasStrictnessModifier<MockClass>(),145 NiceMock() : MockClass() { in NiceMock()146 static_assert(sizeof(*this) == sizeof(MockClass), in NiceMock()158 explicit NiceMock(A&& arg) : MockClass(std::forward<A>(arg)) { in NiceMock()[all …]
112 template <typename MockClass>114 template <typename MockClass>116 template <typename MockClass>424 template <typename MockClass>426 template <typename MockClass>428 template <typename MockClass>
736 class MockClass { class738 MockClass() {} in MockClass() function in __anona0f7f6d50111::MockClass750 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockClass);756 MockClass mock; in TEST()765 MockClass mock; in TEST()783 MockClass mock; in TEST()801 MockClass mock; in TEST()810 MockClass mock; in TEST()820 MockClass mock; in TEST()1352 MockClass mock; in TEST()[all …]
88 MockClass = NonCallableMagicMock90 MockClass = NonCallableMock93 self.assertTrue(is_instance(obj, MockClass))686 def test(MockClass): argument687 MockClass.z = 'foo'692 def test(MockClass): argument693 MockClass.z = 'foo'697 def test(MockClass): argument698 MockClass.z = 'foo'703 def test(MockClass): argument[all …]
450 type `MockClass` if a method other than `DoSomething()` is called:455 NiceMock<MockClass> my_mock("some", "args");481 `MockClass` if a method other than `DoSomething()` is called:486 NaggyMock<MockClass> my_mock("some", "args");508 of type `MockClass` if a method other than `DoSomething()` is called:513 StrictMock<MockClass> my_mock("some", "args");
5 ### Mocking a Normal Class {#MockClass}
1438 >>> with patch('__main__.Class') as MockClass:1439 ... instance = MockClass.return_value1450 >>> MockClass = patcher.start()1451 >>> instance = MockClass()1803 ... self.MockClass = patcher.start()1807 ... assert package.module.Class is self.MockClass