Skip to content

Comments

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

Merged
Groxx merged 1 commit intocadence-workflow:masterfrom
Groxx:add-test-arg
Dec 23, 2024
Merged

Add testing.T arg to test-only helpers#6574
Groxx merged 1 commit intocadence-workflow:masterfrom
Groxx:add-test-arg

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
1 check failed
@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