コード例 #1
0
 def check_invariants(actual_provenance):
     C._dispatch_check_invariants(name)
     # Normalize the test namespace so that expected outputs are stable
     actual = C._dispatch_dump("{}::{}".format(
         test_namespace, name)).replace(test_namespace, "test")
     expected, expected_provenance = results.setdefault(
         frozenset(active_ops), (actual, actual_provenance))
     self.assertMultiLineEqual(
         expected, actual, "expected from {}; actual from {}".format(
             expected_provenance, actual_provenance))
コード例 #2
0
 def rawRegistrations(self):
     return C._dispatch_dump("{}::{}".format(
         self.namespace, self.name))  # type: ignore[attr-defined]