1 Star 0 Fork 0

wengo / kooky

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
testutils.go 340 Bytes
一键复制 编辑 原始数据 按行查看 历史
package testutils
import "path/filepath"
// GetTestDataFilePath returns the full path of a file in the testdata/ dir
func GetTestDataFilePath(testFile string) (string, error) {
testdataPath, err := filepath.Abs(filepath.FromSlash("../testdata"))
if err != nil {
return "", err
}
return filepath.Join(testdataPath, testFile), nil
}
Go
1
https://gitee.com/wengo/kooky.git
git@gitee.com:wengo/kooky.git
wengo
kooky
kooky
dc41c5585b72

搜索帮助