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

Add testing.T arg to test-only helpers #6574

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

Groxx
Copy link
Member

@Groxx Groxx commented Dec 20, 2024

mutable_stat_util.go is surprisingly mixed in its purpose, though it is not documented as such in any way I can see.

So, since these kinda-dubious copy-helpers are in here but are not clearly test-only, I've added a testing.T arg to make it clear and prevent their use elsewhere.
More cleanup should happen in this file, but they're all quite semantically different so I'm breaking it up.

mutable_stat_util.go is surprisingly mixed in its purpose, though it is not documented as such in any way I can see.

So, since these kinda-dubious copy-helpers are in here but are not clearly test-only, I've added a testing.T arg to make it clear and prevent their use elsewhere.
More cleanup should happen in this file, but they're all quite semantically different so I'm breaking it up.
@Groxx Groxx merged commit 60ac355 into cadence-workflow:master Dec 23, 2024
16 of 17 checks passed
@Groxx Groxx deleted the add-test-arg branch December 23, 2024 23:53
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.

2 participants