golangci-lint/test/testshared/runner_unix.go
2022-10-06 00:09:31 +02:00

32 lines
651 B
Go

//go:build !windows
package testshared
import (
"path/filepath"
"testing"
)
// SkipOnWindows it's a noop function on Unix.
func SkipOnWindows(_ testing.TB) {}
// NormalizeFilePathInJSON it's a noop function on Unix.
func NormalizeFilePathInJSON(in string) string {
return in
}
// NormalizeFileInString it's a noop function on Unix.
func NormalizeFileInString(in string) string {
return in
}
// defaultBinaryName returns the path to the default binary.
func defaultBinaryName() string {
return filepath.Join("..", "golangci-lint")
}
// normalizeFilePath it's a noop function on Unix.
func normalizeFilePath(in string) string {
return in
}