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)
| 864 | // relies on: two source keys that differ only by volatile query parameters |
| 865 | // must produce the same stable identity. |
| 866 | func 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 | } |
nothing calls this directly
no test coverage detected