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

add option package suffix and unit tests #762

Closed peczenyj closed 4 months ago

peczenyj commented 4 months ago

Description

Add option packagesuffix as an alternative to packageprefix (can be used together)

Why? I used to create packages like foo and foomock (instead mockfoo or mock_foo) and this option will be helpful.

Type of change

Version of Golang used when building/testing:

How Has This Been Tested?

I add unit tests

Checklist

LandonTClipp commented 4 months ago

Hi, thanks for the PR and the interest in the project. According to our contributing guidelines, I would have preferred to discuss this as an issue beforehand. I am not looking to add any new features to the old (and deprecated) configuration style. You can get this feature for free if you use the packages config, specifically the outpkg parameter. For that reasoning I probably won't merge this.