github.com/eris-ltd/erisdb@v0.25.0/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, 7) 17 }