gosnap:gosnap是执行快照测试的go软件包

时间:2021-05-01 15:48:15
【文件属性】:
文件名称:gosnap:gosnap是执行快照测试的go软件包
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-01 15:48:15
testing go golang snapshot-testing Go 闲聊 gosnap是执行快照测试的go软件包。 快照测试是一种轻松地测试大型输出的便捷方法,该程序包最初是用来测试。 安装 go get github.com/plouc/gosnap 用法 gosnap需要运行上下文,您可以从中创建快照。 package whatever import ( "testing" "github.com/plouc/gosnap" ) func TestSomething ( t * testing. T ) { // creates a new context // snapshots will be stored inside the `snapshots` directory ctx := gosnap . NewContext ( t , "snapshots" ) // creates a ne
【文件预览】:
gosnap-master
----context_test.go(856B)
----diff.go(536B)
----context.go(3KB)
----.travis.yml(158B)
----LICENSE(1KB)
----README.md(2KB)
----snapshot.go(2KB)
----Makefile(3KB)
----.gometalinter.json(145B)
----.gitignore(15B)

网友评论