golangci-lint/test/testshared/runner_unix.go
2022-08-24 22:10:51 +02:00

37 lines
769 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
}
// normalizePathInRegex it's a noop function on Unix.
func normalizePathInRegex(path string) string {
return path
}