16 lines
304 B
Go
16 lines
304 B
Go
package test
|
|
|
|
import "path/filepath"
|
|
|
|
const testdataDir = "testdata"
|
|
const binName = "../golangci-lint"
|
|
|
|
func getProjectRoot() string {
|
|
return filepath.Join("..", "...")
|
|
}
|
|
|
|
func getTestDataDir(names ...string) string {
|
|
parts := append([]string{testdataDir}, names...)
|
|
return filepath.Join(parts...)
|
|
}
|