Skip to content

Commit 3166f3b

Browse files
committed
test: add more alias tests
Signed-off-by: Mark Sagi-Kazar <[email protected]>
1 parent f8fe065 commit 3166f3b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

alias_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,18 @@ func TestAlias(t *testing.T) {
3434
type MyFloat32 float32
3535
type MyFloat64 float64
3636

37+
var myStruct *MyStruct
38+
3739
testCases := []struct {
3840
input any
3941
expectedValue any
4042
expectedOk bool
4143
}{
4244
{"string", "string", false}, // Already resolved
4345
{MyStruct{}, MyStruct{}, false}, // Non-resolvable
46+
{nil, nil, false},
47+
{&MyStruct{}, &MyStruct{}, false},
48+
{myStruct, myStruct, false},
4449

4550
{MyString("string"), "string", true},
4651
{MyOtherString("string"), "string", true},

0 commit comments

Comments
 (0)