mirror of
https://github.com/AdguardTeam/dnsproxy.git
synced 2026-10-12 02:01:26 +00:00
20 lines
418 B
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")
|
|
}
|
|
}
|