(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestGetTemporaryView(t *testing.T) { |
| 10 | a := require.New(t) |
| 11 | got := getTemporaryView("db1", []string{"col1", "col2"}) |
| 12 | want := "--\n-- Temporary view structure for `db1`\n--\nCREATE VIEW `db1` AS SELECT\n 1 AS `col1`,\n 1 AS `col2`;\n\n" |
| 13 | a.Equal(want, got) |
| 14 | } |
nothing calls this directly
no test coverage detected