MCPcopy Create free account
hub / github.com/dolthub/doltgresql / TestShellTypes

Function TestShellTypes

testing/go/types_test.go:3969–3993  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3967}
3968
3969func TestShellTypes(t *testing.T) {
3970 RunScripts(t, []ScriptTest{
3971 {
3972 Name: "shell type use cases",
3973 Assertions: []ScriptTestAssertion{
3974 {
3975 Query: `CREATE TYPE undefined_type;`,
3976 Expected: []sql.Row{},
3977 },
3978 {
3979 Query: `select 1::undefined_type;`,
3980 ExpectedErr: `type "undefined_type" is only a shell`,
3981 },
3982 {
3983 Query: `DROP TYPE undefined_type;`,
3984 Expected: []sql.Row{},
3985 },
3986 {
3987 Query: `DROP TYPE IF EXISTS undefined_type;`,
3988 Expected: []sql.Row{},
3989 },
3990 },
3991 },
3992 })
3993}

Callers

nothing calls this directly

Calls 1

RunScriptsFunction · 0.70

Tested by

no test coverage detected