github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/deploy/def/client_test.go (about) 1 package def 2 3 import ( 4 "fmt" 5 "testing" 6 7 "github.com/stretchr/testify/assert" 8 ) 9 10 func TestArgMap(t *testing.T) { 11 mp := argMap(&CallArg{ 12 Address: "fooo", 13 }) 14 fmt.Println(mp) 15 assert.Equal(t, "fooo", mp["Address"]) 16 assert.Len(t, mp, 8) 17 }