Skip to content

bbbht/gotests-custom-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

替换golang的tests包的模板文件,自定义生成单元测试方法
gotests/internal/render/templates

Usage

go get -u github.com/cweill/gotests/...

https://github.com/bbbht/gotests-custom-template.git /path/to/templates

gotests -template_dir /path/to/templates [options] PATH ...

change log

  1. 如果返回error类型,直接定义并比较error 默认为wantErr为bool类型,比较时不够具体

About

custom test code templates for https://github.com/cweill/gotests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors