MCPcopy Index your code
hub / github.com/docker/docker-agent / TestStableSourceKey_VariantsCollide

Function TestStableSourceKey_VariantsCollide

pkg/config/resolve_test.go:866–873  ·  view source on GitHub ↗

TestStableSourceKey_VariantsCollide is the property the resume fallback relies on: two source keys that differ only by volatile query parameters must produce the same stable identity.

(t *testing.T)

Source from the content-addressed store, hash-verified

864// relies on: two source keys that differ only by volatile query parameters
865// must produce the same stable identity.
866func TestStableSourceKey_VariantsCollide(t *testing.T) {
867 t.Parallel()
868
869 light := url.QueryEscape("http://localhost:7777/gordon-agent?gordonTag=v9-light&origin=desktop")
870 dev := url.QueryEscape("http://localhost:7777/gordon-agent?gordonTag=v9-dev&origin=desktop")
871
872 assert.Equal(t, StableSourceKey(light), StableSourceKey(dev))
873}

Callers

nothing calls this directly

Calls 1

StableSourceKeyFunction · 0.85

Tested by

no test coverage detected