fix: allow 0 capacity for table

- Added guards at the bucket level, to ensure that getting an item in an empty bucket doesn't cause an error.
- Added grow() and shrink() functions to Table, to prevent a capacity of 0 from not being able to grow.
- Updated the fuzz test to use `go_fuzz-utils`.
This commit is contained in:
2026-03-19 20:46:31 -04:00
parent bb874a2aba
commit cdb5efb4a3
7 changed files with 81 additions and 32 deletions

View File

@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("B000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000")