MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestDialectMariaDB_InheritsMySQL

Function TestDialectMariaDB_InheritsMySQL

pkg/sql/keywords/mariadb_test.go:34–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

32}
33
34func TestDialectMariaDB_InheritsMySQL(t *testing.T) {
35 kw := keywords.New(keywords.DialectMariaDB, true)
36 for _, word := range []string{"UNSIGNED", "ZEROFILL", "DATETIME"} {
37 if !kw.IsKeyword(word) {
38 t.Errorf("expected MariaDB to inherit MySQL keyword %q", word)
39 }
40 }
41}
42
43func TestMariaDBKeywords_Recognized(t *testing.T) {
44 kw := keywords.New(keywords.DialectMariaDB, true)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
ErrorfMethod · 0.65
IsKeywordMethod · 0.45

Tested by

no test coverage detected