MCPcopy Create free account
hub / github.com/Lap-Platform/LAP / test_simple

Method test_simple

tests/test_parser.py:26–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24
25class TestSplitTopLevel:
26 def test_simple(self):
27 # _split_top_level only splits at field boundaries (word: type pattern)
28 # Plain values like 'a, b, c' are not field definitions
29 assert _split_top_level('a, b, c') == ['a, b, c']
30
31 def test_simple_fields(self):
32 assert _split_top_level('a: str, b: int, c: bool') == ['a: str', 'b: int', 'c: bool']

Callers

nothing calls this directly

Calls 1

_split_top_levelFunction · 0.90

Tested by

no test coverage detected