MCPcopy
hub / github.com/google-deepmind/penzai / test_selection_get

Method test_selection_get

tests/core/selectors_test.py:668–672  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

666 self.assertFalse(bool(selection_2))
667
668 def test_selection_get(self):
669 self.assertEqual(
670 pz.select(make_example_object()).at(lambda root: root['c'][0]).get(),
671 {'value': CustomLeaf(tag=12)},
672 )
673
674 def test_selection_get_sequence(self):
675 self.assertEqual(

Callers

nothing calls this directly

Calls 5

make_example_objectFunction · 0.85
CustomLeafClass · 0.85
selectMethod · 0.80
getMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected