aboutsummaryrefslogtreecommitdiff
path: root/internal/assert
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-04-12 17:18:43 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-04-12 17:19:34 +0200
commit5e30087db4a06c24c103737d4cb7dcdf06da5b24 (patch)
treedc606d3575b6287b80b4558da3d00df083358d9c /internal/assert
parent8d60f626d819f8bdb038ce619d00946442cc2594 (diff)
downloadgo-oblast-5e30087db4a06c24c103737d4cb7dcdf06da5b24.tar.gz
add Store.SelectOne
Diffstat (limited to 'internal/assert')
-rw-r--r--internal/assert/assert.go4
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)