We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What would you like to be cleaned: We should create a new package for the wrapper functions https://github.com/kubernetes-sigs/lws/blob/main/test/testutils/wrappers.go
Why is this needed: testutils wrappers are used outside of the testutils package. This can cause a dependency cycle. For instance, validators.go https://github.com/kubernetes-sigs/lws/blob/main/test/testutils/validators.go#L153 and util.go https://github.com/kubernetes-sigs/lws/blob/main/test/testutils/util.go#L60 use revision functions. This means that the revision package cannot import the testutils package to use the wrapper functions since it creates a dependency cycle (testutils -> revision -> testutils), forcing us to have duplicate functions in unit tests https://github.com/kubernetes-sigs/lws/blob/main/pkg/utils/revision/revision_utils_test.go#L80.
Splitting it into its own package allows us to avoid this cycle.
Further context: https://github.com/kubernetes-sigs/lws/pull/277/files#r1898155596
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What would you like to be cleaned:
We should create a new package for the wrapper functions https://github.com/kubernetes-sigs/lws/blob/main/test/testutils/wrappers.go
Why is this needed:
testutils wrappers are used outside of the testutils package. This can cause a dependency cycle. For instance, validators.go https://github.com/kubernetes-sigs/lws/blob/main/test/testutils/validators.go#L153 and util.go https://github.com/kubernetes-sigs/lws/blob/main/test/testutils/util.go#L60 use revision functions. This means that the revision package cannot import the testutils package to use the wrapper functions since it creates a dependency cycle (testutils -> revision -> testutils), forcing us to have duplicate functions in unit tests https://github.com/kubernetes-sigs/lws/blob/main/pkg/utils/revision/revision_utils_test.go#L80.
Splitting it into its own package allows us to avoid this cycle.
Further context: https://github.com/kubernetes-sigs/lws/pull/277/files#r1898155596
The text was updated successfully, but these errors were encountered: