(t *testing.T, aUIDs, bUIDs []int64, label string)
| 378 | } |
| 379 | |
| 380 | func assertAtLeastOneUIDCollides(t *testing.T, aUIDs, bUIDs []int64, label string) { |
| 381 | t.Helper() |
| 382 | aSet := make(map[int64]bool, len(aUIDs)) |
| 383 | for _, u := range aUIDs { |
| 384 | aSet[u] = true |
| 385 | } |
| 386 | for _, u := range bUIDs { |
| 387 | if aSet[u] { |
| 388 | return |
| 389 | } |
| 390 | } |
| 391 | require.Failf(t, "fixture invariant broken", |
| 392 | "projects A and B should have at least one %s UID in common. Got A=%v, B=%v", label, aUIDs, bUIDs) |
| 393 | } |
| 394 | |
| 395 | // listPlanUIDs returns every plan UID in the project, via the public gRPC |
| 396 | // ListPlans API. UIDs are parsed from the resource names. |
no outgoing calls
no test coverage detected