mockery icon indicating copy to clipboard operation
mockery copied to clipboard

Ignroign private interfaces in mock generation

Open klugier opened this issue 4 years ago • 4 comments

Hello,

I would like to ask is there a possibility to do ignore interfaces that is package private (starting with lowercase) when all options is selected.

My configuration file looks as follow:

quiet: False
all: True
case: underscore
outpkg: mypackagename

And I would like to ignore following package private mock:

type privateDetector interface {
	detect() (string, error)
}

klugier avatar Aug 12 '20 11:08 klugier

I'm implementing a general change freeze to version 2 unless there is substantial benefits to be gained. This is something that we can apply to version 3. I will add it to the list :)

LandonTClipp avatar Aug 13 '20 02:08 LandonTClipp

It seems reasonable to me. Thanks for fast response.

klugier avatar Aug 13 '20 18:08 klugier

Can version 2 be unfrozen after 2 years of no version 3?

apapsch avatar Jun 22 '22 12:06 apapsch

I've gone back on "freezing" v2 as clearly we've been implementing a lot of features. I've modified our feature-addition strategy, so yes please feel free to add a PR if you still want this added! I'm marking this as an "approved feature."

LandonTClipp avatar Apr 06 '23 21:04 LandonTClipp