github.com/chenfeining/golangci-lint@v1.0.2-0.20230730162517-14c6c67868df/test/testshared/runner_unix.go (about) 1 //go:build !windows 2 3 package testshared 4 5 import ( 6 "path/filepath" 7 "testing" 8 ) 9 10 // SkipOnWindows it's a noop function on Unix. 11 func SkipOnWindows(_ testing.TB) {} 12 13 // NormalizeFilePathInJSON it's a noop function on Unix. 14 func NormalizeFilePathInJSON(in string) string { 15 return in 16 } 17 18 // NormalizeFileInString it's a noop function on Unix. 19 func NormalizeFileInString(in string) string { 20 return in 21 } 22 23 // defaultBinaryName returns the path to the default binary. 24 func defaultBinaryName() string { 25 return filepath.Join("..", "golangci-lint") 26 } 27 28 // normalizeFilePath it's a noop function on Unix. 29 func normalizeFilePath(in string) string { 30 return in 31 }