(t *testing.T)
| 22 | } |
| 23 | |
| 24 | func TestCluster(t *testing.T) { |
| 25 | s, err := AsSelector(Cluster("something")) |
| 26 | assert.NilError(t, err) |
| 27 | assert.DeepEqual(t, s.String(), strings.Join([]string{ |
| 28 | "postgres-operator.crunchydata.com/cluster=something", |
| 29 | }, ",")) |
| 30 | |
| 31 | _, err = AsSelector(Cluster("--whoa/yikes")) |
| 32 | assert.ErrorContains(t, err, "Invalid") |
| 33 | } |
| 34 | |
| 35 | func TestClusterBackupJobs(t *testing.T) { |
| 36 | s, err := AsSelector(ClusterBackupJobs("something")) |
nothing calls this directly
no test coverage detected