mockery icon indicating copy to clipboard operation
mockery copied to clipboard

A mock code autogenerator for Go

Results 120 mockery issues
Sort by recently updated
recently updated
newest added

Description ------------- Fixed: * simple typos * added commas * (bonus) used official cases for GitHub, Golang and YAML ## Type of change - [ ] Bug fix (non-breaking change...

This allows users to choose whether they prefer mock_name.go or name_mock.go for their filenames. Description ------------- I've seen this issue and it seemed like an easy pick, so here we...

Description ------------- @LandonTClipp, I initially thought the current code to build imports list has special logic for vendored files. To prove it, I created a below fixture file: ```go package...

The example of Return Value Provider Functions in README.md will cause failure when run: > Mock.On("passthrough", **mock.AnythingOfType("context.Context")**, mock.AnythingOfType("string")).Return(func(ctx context.Context, s string) string { > return s > }) This was...

doc update needed

When using mock, I always need specify method arguments with On() & Return(). But if I just want to test the running argument (using assert). How can I do that...

Description ------------- Previously mocking a method such as ``` LogMethodf(level string) func(msg string, a ...interface{}) ``` gave a struct with method signature ``` LogMethodf(level string) func(msg string, a []interface{}) ```...

``` brew install mockery mockery --version 06 Jul 22 17:58 CST INF Starting mockery dry-run=false version=v0.0.0-dev v0.0.0-dev ``` This problem reappears in version `2.14.0`, previous issue: #362 My environment: ```...

I recently encountered an issue when trying to use mockery to generate a mock for an interface in `package x` that contains an unexported method. ```go // x/x.go package x...

Description ------------- Sometimes mocks are wanted for the majority of a project, but specific directories are to be excluded (e.g. `internal`). This adds support for excluding a directory and its...

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

approved feature