ChainSafe / ChainSafe/gossamer

tests: do not export test helping functions or mocks

Open
#2,337 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.