ShouldReduceTestComplexity returns true if test complexity should be reduced on the current machine.
()
| 54 | |
| 55 | // ShouldReduceTestComplexity returns true if test complexity should be reduced on the current machine. |
| 56 | func 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. |