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

Function TestAuthFileContents

internal/pgbouncer/config_test.go:35–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestAuthFileContents(t *testing.T) {
36 t.Parallel()
37
38 password := `very"random`
39 data := authFileContents(password)
40 assert.Equal(t, string(data), `"_crunchypgbouncer" "very""random"`+"\n")
41}
42
43func TestClusterINI(t *testing.T) {
44 ctx := context.Background()

Callers

nothing calls this directly

Calls 2

authFileContentsFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected