bitbucket.org/ai69/amoy@v0.2.3/uuid_test.go (about) 1 package amoy 2 3 import ( 4 "testing" 5 ) 6 7 func TestGetUUID(t *testing.T) { 8 tests := []func() string{ 9 GetUUID, 10 GetUB32, 11 GetSID, 12 GetCDKey, 13 } 14 for _, tt := range tests { 15 t.Run(ShortFunctionName(tt), func(t *testing.T) { 16 if got := tt(); got != EmptyStr { 17 t.Logf("got %q of %d", got, len(got)) 18 } else { 19 t.Errorf("%v() got unexpected empty %v", FunctionName(t), got) 20 } 21 }) 22 } 23 }