new tracing system

This commit is contained in:
Joe Kralicky 2025-01-03 19:45:53 +00:00
parent 8f36870650
commit b9065b6a55
No known key found for this signature in database
GPG key ID: 75C4875F34A9FB79
130 changed files with 7928 additions and 1836 deletions

View file

@ -0,0 +1,21 @@
//go:build darwin
package testenv
import (
"os"
"testing"
)
// macos temp directory names are too long
// https://github.com/golang/go/issues/62614
func tempDir(t testing.TB) string {
dir, err := os.MkdirTemp("", "test")
if err != nil {
t.Fatal(err)
}
t.Cleanup(func() {
os.RemoveAll(dir)
})
return dir
}