From 41ef546d95eebb572e1ad00108ac343027012d18 Mon Sep 17 00:00:00 2001 From: bandl <1658002533@qq.com> Date: Fri, 22 Oct 2021 15:35:48 +0800 Subject: [PATCH] test(stringx): val test --- pkg/structure/stringx/string_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/structure/stringx/string_test.go b/pkg/structure/stringx/string_test.go index d9e53cb..1e77857 100644 --- a/pkg/structure/stringx/string_test.go +++ b/pkg/structure/stringx/string_test.go @@ -1,7 +1,9 @@ package stringx import ( + "fmt" "testing" + "unsafe" "gitee.com/timedb/wheatCache/pkg/structure" "github.com/stretchr/testify/require" @@ -89,3 +91,8 @@ func TestStringSingle_Getrange(t *testing.T) { require.NoError(t, err) require.Equal(t, "abc", k) } + +func TestPointSize(t *testing.T) { + var a *int32 + fmt.Println(unsafe.Sizeof(a)) +}