Files
config/test/helpers.go
andrey1s 913ca9672d
Some checks failed
continuous-integration/drone/push Build is failing
first commit
2021-04-27 14:58:19 +03:00

18 lines
235 B
Go

package test
import (
"path/filepath"
"runtime"
)
func FixturePath(file string) string {
path := "fixture/"
_, filename, _, ok := runtime.Caller(0)
if ok {
path = filepath.Dir(filename) + "/" + path
}
return path + file
}