【文件属性】:
文件名称:tf::check_mark:tf是用于Go中功能和HTTP的参数化测试的微框架
文件大小:12KB
文件格式:ZIP
更新时间:2021-02-03 19:50:59
testing go golang http micro-framework
tf
tf是用于在Go中对功能和HTTP进行参数化测试的微框架。
功能
通过包装该函数,它为测试提供了一种简单直观的语法:
// Remainder returns the quotient and remainder from dividing two integers.
func Remainder ( a , b int ) ( int , int ) {
return a / b , a % b
}
func TestRemainder ( t * testing. T ) {
Remainder := tf . Function ( t , Remainder )
【文件预览】:
tf-master
----.gitignore(199B)
----README.md(5KB)
----env.go(1KB)
----env_test.go(1KB)
----http.go(5KB)
----tf_test.go(2KB)
----LICENSE(1KB)
----go.mod(87B)
----tf.go(7KB)
----go.sum(608B)
----http_server.go(2KB)
----http_test.go(16B)