MCPcopy Create free account
hub / github.com/bytebase/bytebase / TestGetTemporaryView

Function TestGetTemporaryView

backend/plugin/db/starrocks/dump_test.go:9–14  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func 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}

Callers

nothing calls this directly

Calls 2

getTemporaryViewFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected