MCPcopy
hub / github.com/github/gh-ost / TestEscapeName

Function TestEscapeName

go/sql/builder_test.go:33–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

31}
32
33func TestEscapeName(t *testing.T) {
34 names := []string{"my_table", `"my_table"`, "`my_table`"}
35 for _, name := range names {
36 escaped := EscapeName(name)
37 require.Equal(t, "`my_table`", escaped)
38 }
39}
40
41func TestBuildEqualsComparison(t *testing.T) {
42 {

Callers

nothing calls this directly

Calls 1

EscapeNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…