Fix Context.ResultPointer.

This commit is contained in:
Nuno Cruces
2024-07-20 12:52:25 +01:00
parent 28f225b32e
commit 06f58c35e3
7 changed files with 83 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
package util
import "testing"
func TestErrorJoiner(t *testing.T) {
var errs ErrorJoiner
errs.Join(NilErr, OOMErr)
for i, e := range []error{NilErr, OOMErr} {
if e != errs[i] {
t.Fail()
}
}
}