MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / all_test_methods_impl

Function all_test_methods_impl

tensorflow/python/framework/test_util.py:1690–1697  ·  view source on GitHub ↗

Apply decorator to all test methods in class.

(cls)

Source from the content-addressed store, hash-verified

1688 """
1689
1690 def all_test_methods_impl(cls):
1691 """Apply decorator to all test methods in class."""
1692 for name in dir(cls):
1693 value = getattr(cls, name)
1694 if callable(value) and name.startswith(
1695 "test") and (name != "test_session"):
1696 setattr(cls, name, decorator(*args, **kwargs)(value))
1697 return cls
1698
1699 return all_test_methods_impl
1700

Callers

nothing calls this directly

Calls 1

decoratorFunction · 0.70

Tested by

no test coverage detected