(t *testing.T)
| 61 | } |
| 62 | |
| 63 | func TestStepSQLWithComment(t *testing.T) { |
| 64 | if os.Getenv("SQLFLOW_TEST_DB") != "mysql" { |
| 65 | t.Skip("skip no mysql test.") |
| 66 | } |
| 67 | a := assert.New(t) |
| 68 | session := makeTestSession(database.GetTestingMySQLURL()) |
| 69 | sql := `-- this is comment {a.b} |
| 70 | SELECT 1, 'a';\n\t |
| 71 | ` |
| 72 | _, e := step.GetStdout(func() error { |
| 73 | return run(sql, session) |
| 74 | }) |
| 75 | a.NoError(e) |
| 76 | } |
nothing calls this directly
no test coverage detected