MCPcopy Create free account
hub / github.com/google-deepmind/chex / testFlattenWithPath

Method testFlattenWithPath

chex/_src/dataclass_test.py:244–250  ·  view source on GitHub ↗
(self, test_type)

Source from the content-addressed store, hash-verified

242
243 @unittest.skipIf(tree is None, 'dm-tree is not compatible with Python 3.13')
244 def testFlattenWithPath(self, test_type):
245 assert tree is not None
246 self._init_testdata(test_type)
247
248 self.assertEqual(
249 tree.flatten_with_path(self.dcls_with_map),
250 self.dcls_flattened_with_path)
251
252 @unittest.skipIf(tree is None, 'dm-tree is not compatible with Python 3.13')
253 def testFlattenWithPathUpTo(self, test_type):

Callers

nothing calls this directly

Calls 1

_init_testdataMethod · 0.95

Tested by

no test coverage detected