MCPcopy Create free account
hub / github.com/apple/coremltools / CreateMockAnything

Method CreateMockAnything

deps/protobuf/python/mox.py:179–187  ·  view source on GitHub ↗

Create a mock that will accept any method calls. This does not enforce an interface.

(self)

Source from the content-addressed store, hash-verified

177 return new_mock
178
179 def CreateMockAnything(self):
180 """Create a mock that will accept any method calls.
181
182 This does not enforce an interface.
183 """
184
185 new_mock = MockAnything()
186 self._mock_objects.append(new_mock)
187 return new_mock
188
189 def ReplayAll(self):
190 """Set all mock objects to replay mode."""

Callers 1

StubOutWithMockMethod · 0.95

Calls 2

MockAnythingClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected