Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
13
func
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
QuoteLiteral
Function · 0.85
Equal
Method · 0.45
Tested by
no test coverage detected