Currently, the Table.Drop() function is deprecated because it is not implemented yet. Let's add that functionality.
Adds true drop functionality to the table, through Table.Drop().
Adds tests for functionality.
Rewrites fuzz test using go_fuzz_utils, to test arbitrary usage patterns.
Rewrite bucket to allow a capacity of zero.
Rename Table.Capacity() to Table.TotalCapacity(), to reflect to different between the capacity of the buckets vs. the whole table.
Enforce 100% mutation test coverage.
Currently, the `Table.Drop()` function is deprecated because it is not implemented yet. Let's add that functionality.
- Adds true drop functionality to the table, through `Table.Drop()`.
- Adds tests for functionality.
- Rewrites fuzz test using `go_fuzz_utils`, to test arbitrary usage patterns.
- Rewrite `bucket` to allow a capacity of zero.
- Rename `Table.Capacity()` to `Table.TotalCapacity()`, to reflect to different between the capacity of the buckets vs. the whole table.
- Enforce 100% mutation test coverage.
- 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`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Currently, the
Table.Drop()function is deprecated because it is not implemented yet. Let's add that functionality.Table.Drop().go_fuzz_utils, to test arbitrary usage patterns.bucketto allow a capacity of zero.Table.Capacity()toTable.TotalCapacity(), to reflect to different between the capacity of the buckets vs. the whole table.