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

Method dispatch

deps/pybind11/tests/test_virtual_functions.py:246–254  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

244
245 class PyClass2(m.DispatchIssue):
246 def dispatch(self):
247 with pytest.raises(RuntimeError) as excinfo:
248 super().dispatch()
249 assert (
250 msg(excinfo.value)
251 == 'Tried to call pure virtual function "Base::dispatch"'
252 )
253
254 return m.dispatch_issue_go(PyClass1())
255
256 b = PyClass2()
257 assert m.dispatch_issue_go(b) == "Yay.."

Callers

nothing calls this directly

Calls 3

msgFunction · 0.85
PyClass1Class · 0.85
dispatchMethod · 0.45

Tested by

no test coverage detected