ChainSafe / ChainSafe/gossamer
tests: do not export test helping functions or mocks
Open
- Dominant language
- Go
- Stars
- 454
- Forks
- 144
- PR merge metrics
- No merged PRs in 30d
Description
## Task summary
We should be more careful about polluting our Go packages API with exported mocks and test helping functions. In that case it is better to keep those unexported and duplicate the code.
This would also allow to decouple packages more easily without having to struggle with test cycle dependencies.
This issue should move all our mocks generated code and helping functions in `_test.go` files in the package where they are needed.
Contributor guide
Assessment
This issue has not been assessed yet.