1 Star 0 Fork 0

蔡风华 / runutils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
runutils_test.go 425 Bytes
一键复制 编辑 原始数据 按行查看 历史
package runutils
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestRunFuncName(t *testing.T) {
expected := `gitee.com/cfh008/runutils.TestRunFuncName`
name := RunFuncName()
assert.Equal(t, expected, name)
}
func TestRunFileAndLine(t *testing.T) {
// 需要和实际行号严格对应,否则会报错
expected := `runutils_test.go#18`
info := RunFileAndLine()
assert.Equal(t, expected, info)
}
Go
1
https://gitee.com/cfh008/runutils.git
git@gitee.com:cfh008/runutils.git
cfh008
runutils
runutils
master

搜索帮助