]> Cypherpunks repositories - gostls13.git/commit
go/types: add a test for Context deduplication of hash collisions
authorRobert Findley <rfindley@google.com>
Fri, 12 Nov 2021 01:15:02 +0000 (20:15 -0500)
committerRobert Findley <rfindley@google.com>
Sat, 13 Nov 2021 01:39:09 +0000 (01:39 +0000)
commite658c42ba460b91d5b6934829ddffa802d4ca524
treeb65c62e7d7add742aa9833b9565cce5750815099
parent2fd720b78086eaa57559e38f6ad4fe51c09c3a17
go/types: add a test for Context deduplication of hash collisions

Add a test that exercises the fall-back logic in Context to handle hash
collisions by de-duplicating using Identical.

This has to be a somewhat invasive test because we don't know any actual
cases of hash collisions.

Change-Id: Idf00f7a6ab8c7517ed0f91fdc42d54f5e736b1b9
Reviewed-on: https://go-review.googlesource.com/c/go/+/363517
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/context_test.go [new file with mode: 0644]
src/go/types/types_test.go [deleted file]