checksum/assert/log.go
2023-08-01 15:32:05 +08:00

20 lines
308 B
Go

package assert
import (
"fmt"
"testing"
_ "unsafe"
)
// 指针接收器
//
//go:linkname logDepth testing.(*common).logDepth
//go:nosplit
func logDepth(_ *testing.T, s string, depth int)
func errorf(t *testing.T, format string, args ...any) {
logDepth(t, fmt.Sprintf(format, args...), 3)
t.Fail()
}