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

Function test_grouping_identifier_invalid

tests/test_grouping.py:137–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136
137def test_grouping_identifier_invalid():
138 p = sqlparse.parse('a.')[0]
139 assert isinstance(p.tokens[0], sql.Identifier)
140 assert p.tokens[0].has_alias() is False
141 assert p.tokens[0].get_name() is None
142 assert p.tokens[0].get_real_name() is None
143 assert p.tokens[0].get_parent_name() == 'a'
144
145
146def test_grouping_identifier_invalid_in_middle():

Callers

nothing calls this directly

Calls 4

has_aliasMethod · 0.80
get_nameMethod · 0.80
get_parent_nameMethod · 0.80
get_real_nameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…