cccteam / github-workflows

MIT License
0 stars 0 forks source link

Will not find orphaned mock files #38

Open bswaney-ccc opened 3 months ago

bswaney-ccc commented 3 months ago

If a go mock directive is deleted and the generated file is left behind it will not be caught and will persist indefinitely. One issue with this is, if a directive is deleted but the file is not, tests will continue to pass until the underlying interface is modified.

https://github.com/cccteam/github-workflows/blob/685da1551ae59ddfa31bb7874c81485c3da21a93/.github/workflows/golang-ci.yml#L35

bswaney-ccc commented 3 months ago

This is more or less a self correcting issue but I thought I would put it here anyways.