1
0

Compare commits

...

1 Commits

Author SHA1 Message Date
b7b7db6d60 reduce call stack skip 2025-05-07 09:05:24 -05:00

View File

@ -24,7 +24,7 @@ assert.%s
func fileInfo() (string, int) { func fileInfo() (string, int) {
// Skip frames: runtime.Callers, this function, assertion function, and test helper // Skip frames: runtime.Callers, this function, assertion function, and test helper
// This gets us to the actual test file that called the assertion // This gets us to the actual test file that called the assertion
const skip = 4 const skip = 3
_, file, line, ok := runtime.Caller(skip) _, file, line, ok := runtime.Caller(skip)
if !ok { if !ok {
return "unknown_file", 0 return "unknown_file", 0