(t *testing.T)
| 3967 | } |
| 3968 | |
| 3969 | func 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 | } |
nothing calls this directly
no test coverage detected