gotests

Automatically generate Go test boilerplate from source code

brewmacoslinux
Try with needOr install directly
Source

About

Automatically generate Go test boilerplate from your source code

Commands

gotests

Examples

Generate tests for all functions in a Go file$ gotests -all myfile.go
Generate tests for specific functions$ gotests -only MyFunction myfile.go
Generate tests with custom output file$ gotests -all -w myfile.go