diff options
Diffstat (limited to 'internal/test')
| -rw-r--r-- | internal/test/helpers.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/internal/test/helpers.go b/internal/test/helpers.go deleted file mode 100644 index 4cfca1e..0000000 --- a/internal/test/helpers.go +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* -* Copyright 2025 Stefan Majewsky <majewsky@gmx.net> -* SPDX-License-Identifier: Apache-2.0 -* Refer to the file "LICENSE" for details. -*******************************************************************************/ - -package test - -import ( - "reflect" - "testing" -) - -func AssertEqual[V any](t *testing.T, actual, expected V) bool { - if reflect.DeepEqual(actual, expected) { - return true - } - t.Helper() - t.Errorf("expected %#v, but got %#v", expected, actual) - return false -} |
