(t *testing.T)
| 44 | } |
| 45 | |
| 46 | func TestDeserializeNotify(t *testing.T) { |
| 47 | addr := common.AddressFromVmCode([]byte("123")) |
| 48 | value := []interface{}{"helloworld", []byte("1234"), 123, -1, -128, -260, true, big.NewInt(100), addr, common.UINT256_EMPTY} |
| 49 | expected := []interface{}{"helloworld", hex.EncodeToString([]byte("1234")), "123", "-1", "-128", "-260", true, "100", addr.ToBase58(), common.UINT256_EMPTY.ToHexString()} |
| 50 | for i, val := range value { |
| 51 | assert.Equal(t, DeserializeNotify(EncodeNotify(t, val)), interface{}(expected[i])) |
| 52 | } |
| 53 | |
| 54 | assert.Equal(t, DeserializeNotify(EncodeNotify(t, value)), interface{}(expected)) |
| 55 | } |
nothing calls this directly
no test coverage detected