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

Function test_qualified_function

tests/test_grouping.py:642–649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

640
641
642def test_qualified_function():
643 p = sqlparse.parse('foo()')[0].tokens[0]
644 assert p.get_parent_name() is None
645 assert p.get_real_name() == 'foo'
646
647 p = sqlparse.parse('foo.bar()')[0].tokens[0]
648 assert p.get_parent_name() == 'foo'
649 assert p.get_real_name() == 'bar'
650
651
652def test_aliased_function_without_as():

Callers

nothing calls this directly

Calls 2

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…