Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Integralist
Copy link
Collaborator

@Integralist Integralist commented Dec 11, 2023

A while ago I started naming functions TestCreate instead of the more explicit Test<SomeResource>Create which I did because the package name already provided the context for what the test was creating.

But what ended up happening was that the test output when there was an error didn't help in identifying which of many TestCreate functions had failed. As this change wasn't even consistent across the whole code base, I've decided to go back to the original naming.

@Integralist Integralist added the clean-up Code clean-up or refactor label Dec 11, 2023
@Integralist Integralist merged commit 76671b2 into main Dec 11, 2023
@Integralist Integralist deleted the integralist/test-names branch December 11, 2023 18:03
Integralist added a commit that referenced this pull request Feb 5, 2024
Integralist added a commit that referenced this pull request Feb 6, 2024
* refactor: rename test function names (#1107)

* fix: address go vet issues

* fix: remove deprecated field

* fix: reference changed field names

* refactor(all): bump to go-fastly v9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean-up Code clean-up or refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants