feat: sentinel error ErrBadHash
#19
Reference in New Issue
Block a user
Delete Branch "feat/sentinel-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Currently, the errors are not sentinel, and so are hard to test for. This PR makes sure hash collision errors are accounted for.
Changes
ErrBadHash. Happens when there are too many collisions for an item to be added.Design Decisions
ErrBadHashoverErrCyclebecause the feedbach that the user should be given is to evaluate their hash functions. Cycle collision is a bit esoteric.Checklist