MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_multiple_inheritance_virtbase

Function test_multiple_inheritance_virtbase

tests/test_multiple_inheritance.py:231–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229
230
231def test_multiple_inheritance_virtbase():
232 class MITypePy(m.Base12a):
233 def __init__(self, i, j):
234 m.Base12a.__init__(self, i, j)
235
236 mt = MITypePy(3, 4)
237 assert mt.bar() == 4
238 assert m.bar_base2a(mt) == 4
239 assert m.bar_base2a_sharedptr(mt) == 4
240
241
242def test_mi_static_properties():

Callers

nothing calls this directly

Calls 2

MITypePyClass · 0.85
barMethod · 0.45

Tested by

no test coverage detected