vektra / mockery

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

Don't recurse into submodules on `recursive: true` #740

Closed LandonTClipp closed 9 months ago

LandonTClipp commented 9 months ago

Description

This PR changes mockery to not recurse into paths that contain a go.mod submodule. This is to help support monorepos that contain many modules. In this case, mockery should not be recursing into these because it causes issues, like in issue #706.

Type of change

Version of Golang used when building/testing:

codecov[bot] commented 9 months ago

Codecov Report

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

Comparison is base (446e0bf) 75.16639% compared to head (b248492) 75.17584%.

Files Patch % Lines
pkg/config/config.go 73.68421% 4 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #740 +/- ## =================================================== + Coverage 75.16639% 75.17584% +0.00944% =================================================== Files 10 10 Lines 2404 2417 +13 =================================================== + Hits 1807 1817 +10 - Misses 459 461 +2 - Partials 138 139 +1 ```

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