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

Function TestDataDirectory

internal/postgres/config_test.go:38–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestDataDirectory(t *testing.T) {
39 cluster := new(v1beta1.PostgresCluster)
40 cluster.Spec.PostgresVersion = 12
41
42 assert.Equal(t, DataDirectory(cluster), "/pgdata/pg12")
43}
44
45func TestDataStorage(t *testing.T) {
46 cluster := new(v1beta1.PostgresCluster)

Callers

nothing calls this directly

Calls 2

DataDirectoryFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected