github.com/Finschia/finschia-sdk@v0.48.1/x/token/event_test.go (about) 1 package token_test 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 8 "github.com/Finschia/finschia-sdk/x/token" 9 ) 10 11 func TestAttributeKeyStringer(t *testing.T) { 12 for _, name := range token.AttributeKey_name { 13 t.Run(name, func(t *testing.T) { 14 value := token.AttributeKey(token.AttributeKey_value[name]) 15 customName := value.String() 16 require.EqualValues(t, value, token.AttributeKeyFromString(customName)) 17 }) 18 } 19 }