MCPcopy
hub / github.com/andialbrecht/sqlparse / test_tokenlist_first

Function test_tokenlist_first

tests/test_tokenize.py:102–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101
102def test_tokenlist_first():
103 p = sqlparse.parse(' select foo')[0]
104 first = p.token_first()
105 assert first.value == 'select'
106 assert p.token_first(skip_ws=False).value == ' '
107 assert sql.TokenList([]).token_first() is None
108
109
110def test_tokenlist_token_matching():

Callers

nothing calls this directly

Calls 1

token_firstMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…