1
0
Fork 0

Adding upstream version 2.6.3.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-18 22:58:26 +02:00
parent 4d8cd0ce4c
commit 2b08a89310
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
39 changed files with 2140 additions and 0 deletions

22
internal/assert/assert.go Normal file
View file

@ -0,0 +1,22 @@
package assert
import (
"testing"
"github.com/google/go-cmp/cmp"
)
func Equal(t *testing.T, x, y interface{}) {
t.Helper()
r := DiffReporter{}
if !cmp.Equal(x, y, cmp.Reporter(&r)) {
t.Error(r.String())
}
}
func Nil(t *testing.T, x interface{}) {
t.Helper()
Equal(t, x, nil)
}