mockhiato

所属分类:自动编程
开发工具:GO
文件大小:54KB
下载次数:0
上传日期:2018-12-21 08:03:47
上 传 者sh-1993
说明:  用于Go编程语言的Mock codegen CLI工具
(Mock codegen CLI tool for the Go programming language)

文件列表:
.travis.yml (1118, 2018-12-21)
LICENSE (11347, 2018-12-21)
cmd (0, 2018-12-21)
cmd\clean.go (381, 2018-12-21)
cmd\cover_multiple_packages.sh (271, 2018-12-21)
cmd\generate.go (1813, 2018-12-21)
cmd\go_report_card.sh (482, 2018-12-21)
cmd\root.go (2317, 2018-12-21)
gen_tests.sh (1550, 2018-12-21)
glide.lock (2738, 2018-12-21)
glide.yaml (375, 2018-12-21)
lib (0, 2018-12-21)
lib\api.go (2576, 2018-12-21)
lib\bufferw.go (384, 2018-12-21)
lib\clean (0, 2018-12-21)
lib\clean\main.go (963, 2018-12-21)
lib\config.go (371, 2018-12-21)
lib\enum.go (408, 2018-12-21)
lib\generate (0, 2018-12-21)
lib\generate\integration_test (0, 2018-12-21)
lib\generate\integration_test\demo.go (598, 2018-12-21)
lib\generate\integration_test\demo_test.go (7140, 2018-12-21)
lib\generate\integration_test\mockhiato_mocks.go (4150, 2018-12-21)
lib\generate\main.go (369, 2018-12-21)
lib\generate\mock_finder.go (1988, 2018-12-21)
lib\generate\oracle.go (3222, 2018-12-21)
lib\generate\oracle_test.go (1633, 2018-12-21)
lib\generate\sort.go (610, 2018-12-21)
lib\generate\testdata (0, 2018-12-21)
lib\generate\testdata\1.7 (0, 2018-12-21)
lib\generate\testdata\1.7\dependent_interface (0, 2018-12-21)
lib\generate\testdata\1.7\dependent_interface\actual (0, 2018-12-21)
lib\generate\testdata\1.7\dependent_interface\actual\demo.go (648, 2018-12-21)
lib\generate\testdata\1.7\dependent_interface\expect (0, 2018-12-21)
lib\generate\testdata\1.7\dependent_interface\expect\demo.go (648, 2018-12-21)
lib\generate\testdata\1.7\dependent_interface\expect\mockhiato_mocks.go (1341, 2018-12-21)
lib\generate\testdata\1.7\dependent_interface\expect\mocks (0, 2018-12-21)
... ...

# Mockhiato [![License](https://img.shields.io/github/license/littledot/mockhiato.svg)](https://github.com/littledot/mockhiato/blob/master/LICENSE) [![GitHub Release](https://img.shields.io/github/release/littledot/mockhiato.svg)](https://github.com/littledot/mockhiato/releases) [![Build Status](https://travis-ci.org/littledot/mockhiato.svg?branch=master)](https://travis-ci.org/littledot/mockhiato) [![Go Report Card](https://goreportcard.com/badge/github.com/littledot/mockhiato)](https://goreportcard.com/report/github.com/littledot/mockhiato) [![Coverage Status](https://codecov.io/gh/littledot/mockhiato/branch/master/graph/badge.svg)](https://codecov.io/gh/littledot/mockhiato) [![Go Doc](https://godoc.org/github.com/littledot/mockhiato?status.svg)](http://godoc.org/github.com/littledot/mockhiato) 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](https://cloud.githubusercontent.com/assets/14***4066/25729923/7cd45c***-30ed-11e7-8e29-9145085e4748.gif) ## 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.

近期下载者

相关文件


收藏者