-
- Downloads
command: Solve cyclic dependency with testhelper package
The "testhelper" package currently depends on the "command" package, which is why we cannot use the "testhelper"'s setup functions in the latter package. The only remaining dependency is the wait group which is used to count in-flight commands though such that we can assert that there are no leaking processes after tests have concluded. Move this wait group into a separate "commandcounter" package to remove this dependency. While this also allows other packages to modify the counter due to its interface now being public, this really shouldn't be much of a problem at all.
internal/command/commandcounter/counter.go
0 → 100644
Please register or sign in to comment