mockhiato

command module
v0.0.0-...-f0190a3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

README

Mockhiato

License GitHub Release Build Status Go Report Card Coverage Status Go Doc

Mockhiato is a mock generation CLI tool for the Go programming language. It is designed to be fast and configurable.

  • 🌀 Generates mocks for entire projects with a single command.
  • 🔎 Generates mocks for 3rd party interfaces used by your packages. (eg: If your code uses os.FileInfo, Mockhiato will generate mocks for it even though it is not part of your package.)
  • ⚡ Uses go/loader to speed up AST parsing.
  • 🛠️ Highly configurable to suit your organization's coding standards. (eg: mock name format, directory name, etc.)
  • 👶 Provides easy-to-use and well-documented command line interface.
  • 🍻 Supports stretchr/testify.

asciicast

Installation

Install with go get.

go get -u github.com/littledot/mockhiato

Usage

Mockhiato's main feature is to manage mocks for your Go project.

mockhiato generate

generate creates mocks for the project located at the current working directory by default. Many options are available for customization. Mockhiato currently supports github.com/stretchr/testify/mock. Open an issue if you would like another mocking framework to be supported.

mockhiato clean

clean deletes generated mocks.

mockhiato generate -h

Mockhiato is highly configurable. Append -h to commands for more details regarding various options and usages.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

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