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

Function TestDataStorage

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

Source from the content-addressed store, hash-verified

43}
44
45func TestDataStorage(t *testing.T) {
46 cluster := new(v1beta1.PostgresCluster)
47 cluster.Spec.PostgresVersion = rand.Int32N(20)
48
49 assert.Equal(t, DataStorage(cluster), "/pgdata")
50}
51
52func TestLogRotation(t *testing.T) {
53 t.Parallel()

Callers

nothing calls this directly

Calls 2

DataStorageFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected