MCPcopy
hub / github.com/dbcli/pgcli / test_function_definition

Function test_function_definition

tests/test_pgexecute.py:661–673  ·  view source on GitHub ↗
(executor)

Source from the content-addressed store, hash-verified

659
660@dbtest
661def test_function_definition(executor):
662 run(
663 executor,
664 """
665 CREATE OR REPLACE FUNCTION public.the_number_three()
666 RETURNS int
667 LANGUAGE sql
668 AS $function$
669 select 3;
670 $function$
671 """,
672 )
673 executor.function_definition("the_number_three")
674
675
676@dbtest

Callers

nothing calls this directly

Calls 2

runFunction · 0.90
function_definitionMethod · 0.80

Tested by

no test coverage detected