vektra / mockery

A mock code autogenerator for Go
https://vektra.github.io/mockery/
BSD 3-Clause "New" or "Revised" License
5.8k stars 395 forks source link

Fix issue with file ordering #760

Closed LandonTClipp closed 4 months ago

LandonTClipp commented 4 months ago

A bug exists in the logic that determines if go.mod exists: if a *.go file is returned by the filesystem before go.mod, we will not skip the subtree as intended. To fix this, we always stat for go.mod if we find a *.go file, as a final check before considering the path to be a subpackage.

codecov[bot] commented 4 months ago

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (d4e7f57) 42.42613% compared to head (d39a2a2) 42.45067%.

Files Patch % Lines
pkg/config/config.go 60.00000% 3 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #760 +/- ## =================================================== + Coverage 42.42613% 42.45067% +0.02454% =================================================== Files 61 61 Lines 4806 4815 +9 =================================================== + Hits 2039 2044 +5 - Misses 2588 2591 +3 - Partials 179 180 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.