summaryrefslogtreecommitdiffstats
path: root/slog/race_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'slog/race_test.go')
-rw-r--r--slog/race_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/slog/race_test.go b/slog/race_test.go
new file mode 100644
index 0000000..be69816
--- /dev/null
+++ b/slog/race_test.go
@@ -0,0 +1,13 @@
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build race
+
+package slog
+
+import "testing"
+
+func wantAllocs(t *testing.T, want int, f func()) {
+ t.Log("skipping allocation tests with race detector")
+}