Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to '_test' package idiom #273

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jdimaria
Copy link

@jdimaria jdimaria commented Dec 3, 2024

Resolves #272, simple adoption of the _test package to enforce testing strictly against the public data structure APIs

Previous tests have been confirmed to still pass with updated imports

Only test that needed additional updates was inside btree_test.go, which was the only test that broke convention by testing unexported fields beyond simple reads (see TestBTreeSearch())

The intended test behavior has been replicated as closely as possible using exported methods

Copy link

sonarcloud bot commented Dec 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adopt '_test' package idiom
1 participant