Files
dnsproxy/proxy/proxy_darwin_test.go

20 lines
418 B
Go

//go:build darwin
package proxy_test
import (
"strings"
"testing"
)
// skipDarwin is a helper that skips tests on macOS systems if their name
// contains the target substring.
//
// TODO(f.setrakov): Remove, when the other way to fix jiggle tests on macOS is
// found.
func skipDarwin(tb testing.TB, target string) {
if strings.Contains(tb.Name(), target) {
tb.Skipf("skipping; not supported for darwin")
}
}