MCPcopy
hub / github.com/kopia/kopia / ShouldReduceTestComplexity

Function ShouldReduceTestComplexity

internal/testutil/testutil.go:56–62  ·  view source on GitHub ↗

ShouldReduceTestComplexity returns true if test complexity should be reduced on the current machine.

()

Source from the content-addressed store, hash-verified

54
55// ShouldReduceTestComplexity returns true if test complexity should be reduced on the current machine.
56func ShouldReduceTestComplexity() bool {
57 if isRaceDetector {
58 return true
59 }
60
61 return strings.Contains(runtime.GOARCH, "arm") && runtime.GOOS != "darwin"
62}
63
64// ShouldSkipUnicodeFilenames returns true if:
65// an environmental variable is unset, set to false, test is running on ARM, or if running race detection.

Calls 1

ContainsMethod · 0.45