mockery

command module
v3.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

README

mockery

go.dev reference GitHub go.mod Go version GitHub release (latest SemVer) Go Report Card codecov

mockery provides the ability to easily generate mocks for Golang interfaces using the stretchr/testify/mock package. It removes the boilerplate coding required to use mocks.

Documentation

Documentation is found at our GitHub Pages site.

Development

taskfile.dev is used for build tasks. Initialize all go build tools:

go mod download -x

You can run any of the steps listed in Taskfile.yml:

$ task test
task: [test] go test -v -coverprofile=coverage.txt ./...

Stargazers

Stargazers over time

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
package config defines the schemas and functionality of the .mockery.yml config files.
package config defines the schemas and functionality of the .mockery.yml config files.
cmd
fixtures/recursive_generation/subpkg_with_only_autogenerated_files
Code generated by an arbitrary code generator thingy.
Code generated by an arbitrary code generator thingy.
Package template provides data and functionality for rendering templates using mockery.
Package template provides data and functionality for rendering templates using mockery.
Package shared provides variables/objects that need to be shared across multiple packages.
Package shared provides variables/objects that need to be shared across multiple packages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL