diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2025-05-29 12:40:29 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <brad@danga.com> | 2025-05-29 13:06:29 -0700 |
| commit | ef49e75b10a30b32c0c4e79c7e78392b95435eed (patch) | |
| tree | 3997fff6a017e80e90bdaeab6dce81a06b453f32 /control/controlhttp/controlhttpserver/controlhttpserver.go | |
| parent | 401d6c0cfaae0a2caf50640b79287505838704a9 (diff) | |
| download | tailscale-ef49e75b10a30b32c0c4e79c7e78392b95435eed.tar.xz tailscale-ef49e75b10a30b32c0c4e79c7e78392b95435eed.zip | |
util/set: add SmallSet.SoleElement, fix bug, add more tests
This adds SmallSet.SoleElement, which I need in another repo for
efficiency. I added tests, but those tests failed because Add(1) +
Add(1) was promoting the first Add's sole element to a map of one
item. So fix that, and add more tests.
Updates tailscale/corp#29093
Change-Id: Iadd5ad08afe39721ee5449343095e389214d8389
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions
