MCPcopy
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
12func 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

AddMethod · 0.95
ErrorMethod · 0.95

Tested by

no test coverage detected