MCPcopy Create free account
hub / github.com/docker/cli / generateCluster

Function generateCluster

cli/command/service/list_test.go:180–188  ·  view source on GitHub ↗
(t *testing.T, opts clusterOpts)

Source from the content-addressed store, hash-verified

178}
179
180func generateCluster(t *testing.T, opts clusterOpts) *cluster {
181 t.Helper()
182 c := cluster{
183 services: generateServices(t, opts),
184 nodes: generateNodes(t, opts.activeNodes),
185 }
186 c.tasks = generateTasks(t, c.services, c.nodes, opts)
187 return &c
188}
189
190func generateServices(t *testing.T, opts clusterOpts) client.ServiceListResult {
191 t.Helper()

Callers 1

Calls 3

generateServicesFunction · 0.85
generateNodesFunction · 0.85
generateTasksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…