MCPcopy
hub / github.com/docker/compose / mustServiceHash

Function mustServiceHash

pkg/compose/reconcile_test.go:909–914  ·  view source on GitHub ↗

--- Helpers ---

(t *testing.T, svc types.ServiceConfig)

Source from the content-addressed store, hash-verified

907// --- Helpers ---
908
909func mustServiceHash(t *testing.T, svc types.ServiceConfig) string {
910 t.Helper()
911 h, err := ServiceHash(svc)
912 assert.NilError(t, err)
913 return h
914}
915
916// mustResolvedServiceHash mirrors what the executor persists at create time:
917// the service references are resolved before hashing. Use it to seed

Calls 1

ServiceHashFunction · 0.85

Tested by

no test coverage detected