mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
14 lines
204 B
Go
14 lines
204 B
Go
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()
|
|
}
|
|
}
|
|
}
|