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.
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