diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-04-12 17:18:43 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-04-12 17:19:34 +0200 |
| commit | 5e30087db4a06c24c103737d4cb7dcdf06da5b24 (patch) | |
| tree | dc606d3575b6287b80b4558da3d00df083358d9c /internal/assert/assert.go | |
| parent | 8d60f626d819f8bdb038ce619d00946442cc2594 (diff) | |
| download | go-oblast-5e30087db4a06c24c103737d4cb7dcdf06da5b24.tar.gz | |
add Store.SelectOne
Diffstat (limited to 'internal/assert/assert.go')
| -rw-r--r-- | internal/assert/assert.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/assert/assert.go b/internal/assert/assert.go index c4e7b50..c82d35c 100644 --- a/internal/assert/assert.go +++ b/internal/assert/assert.go @@ -9,7 +9,7 @@ import ( ) // Equal is a test assertion. -func Equal[V comparable](t *testing.T, actual, expected V) { +func Equal[V comparable](t testing.TB, actual, expected V) { t.Helper() if actual != expected { t.Errorf("expected %#v, but got %#v", expected, actual) @@ -17,7 +17,7 @@ func Equal[V comparable](t *testing.T, actual, expected V) { } // DeepEqual is a test assertion. -func DeepEqual[V any](t *testing.T, actual, expected V) { +func DeepEqual[V any](t testing.TB, actual, expected V) { t.Helper() if !reflect.DeepEqual(actual, expected) { t.Errorf("expected %#v, but got %#v", expected, actual) |
