mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
ed64e33c8c8bc9a919e2b85a1a08225b5ae59d70. Also add tests for local mode of goimports and do refactoring of tests.
15 lines
301 B
Go
15 lines
301 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...)
|
|
}
|