MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / mustInject

Function mustInject

cli/internal/platform/inject_test.go:40–45  ·  view source on GitHub ↗

mustInject runs injection and fails the test on a (hard) error.

(t *testing.T, token, team string, sources []*specs.Source, destinations []*specs.Destination)

Source from the content-addressed store, hash-verified

38
39// mustInject runs injection and fails the test on a (hard) error.
40func mustInject(t *testing.T, token, team string, sources []*specs.Source, destinations []*specs.Destination) []*specs.Destination {
41 t.Helper()
42 got, err := MaybeInjectDestination(context.Background(), zerolog.Nop(), token, team, sources, destinations)
43 require.NoError(t, err)
44 return got
45}
46
47func tenantItem(id, tenantStatus, team string) map[string]any {
48 return map[string]any{"tenant_id": id, "status": tenantStatus, "team_name": team}

Calls 1

MaybeInjectDestinationFunction · 0.85

Tested by

no test coverage detected