MCPcopy
hub / github.com/sourcegraph/checkup / TestErrors

Function TestErrors

types/errors_test.go:8–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestErrors(t *testing.T) {
9 errs := []error{
10 errors.New("Err 1"),
11 errors.New("Err 2"),
12 }
13 errsT := Errors(errs)
14
15 want := "Err 1; Err 2"
16 if got := errsT.Error(); want != got {
17 t.Errorf("Errors, wanted '%s', got '%s'", want, got)
18 }
19}

Callers

nothing calls this directly

Calls 2

ErrorsTypeAlias · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected