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

Function TestAnyCluster

internal/naming/selectors_test.go:16–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14)
15
16func TestAnyCluster(t *testing.T) {
17 s, err := AsSelector(AnyCluster())
18 assert.NilError(t, err)
19 assert.DeepEqual(t, s.String(), strings.Join([]string{
20 "postgres-operator.crunchydata.com/cluster",
21 }, ","))
22}
23
24func TestCluster(t *testing.T) {
25 s, err := AsSelector(Cluster("something"))

Callers

nothing calls this directly

Calls 3

AsSelectorFunction · 0.85
AnyClusterFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected