/******************************************************************************* * Copyright 2025 Stefan Majewsky * SPDX-License-Identifier: Apache-2.0 * Refer to the file "LICENSE" for details. *******************************************************************************/ package option import ( "reflect" "testing" ) func AssertEqual[V any](t *testing.T, actual, expected V) { if reflect.DeepEqual(actual, expected) { return } t.Helper() t.Errorf("expected %#v, but got %#v", expected, actual) } func PointerTo[V any](value V) *V { return &value }