MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / TestQuoteLiteral

Function TestQuoteLiteral

internal/postgres/sql_test.go:13–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestQuoteLiteral(t *testing.T) {
14 assert.Equal(t, QuoteLiteral(``), ` E''`)
15 assert.Equal(t, QuoteLiteral(`ab"cd\ef'gh`), ` E'ab"cd\\ef''gh'`)
16}

Callers

nothing calls this directly

Calls 2

QuoteLiteralFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected