]> Sergey Matveev's repositories - btrtrc.git/blobdiff - internal/check/check_testing.go
Add internal panicif, check and nestedmaps packages
[btrtrc.git] / internal / check / check_testing.go
diff --git a/internal/check/check_testing.go b/internal/check/check_testing.go
new file mode 100644 (file)
index 0000000..3ec404e
--- /dev/null
@@ -0,0 +1,11 @@
+//go:build go1.21
+
+package check
+
+import "testing"
+
+func init() {
+       if testing.Testing() {
+               Enabled = true
+       }
+}