Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/google/mtail
/ TestNilErrorPosition
Function
TestNilErrorPosition
internal/runtime/compiler/errors/errors_test.go:12–20 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
10
)
11
12
func
TestNilErrorPosition(t *testing.T) {
13
e := errors.ErrorList{}
14
e.Add(nil,
"error"
)
15
r := e.Error()
16
expected :=
":0:0: error"
17
if
r != expected {
18
t.Errorf(
"want %q, got %q"
, expected, r)
19
}
20
}
Callers
nothing calls this directly
Calls
2
Add
Method · 0.95
Error
Method · 0.95
Tested by
no test coverage detected