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

Method __init__

deps/protobuf/python/mox.py:1344–1355  ·  view source on GitHub ↗
(cls, name, bases, d)

Source from the content-addressed store, hash-verified

1342 """
1343
1344 def __init__(cls, name, bases, d):
1345 type.__init__(cls, name, bases, d)
1346
1347 # also get all the attributes from the base classes to account
1348 # for a case when test class is not the immediate child of MoxTestBase
1349 for base in bases:
1350 for attr_name in dir(base):
1351 d[attr_name] = getattr(base, attr_name)
1352
1353 for func_name, func in d.items():
1354 if func_name.startswith('test') and callable(func):
1355 setattr(cls, func_name, MoxMetaTestBase.CleanUpTest(cls, func))
1356
1357 @staticmethod
1358 def CleanUpTest(cls, func):

Callers

nothing calls this directly

Calls 5

getattrFunction · 0.85
setattrFunction · 0.85
CleanUpTestMethod · 0.80
__init__Method · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected