diff options
author | Bryan Duxbury <bryanduxbury@apache.org> | 2011-09-20 18:45:56 +0000 |
---|---|---|
committer | Bryan Duxbury <bryanduxbury@apache.org> | 2011-09-20 18:45:56 +0000 |
commit | e80a194c473e94f90b30919da29cbe9b4542e244 (patch) | |
tree | 16f539b1ba856b1b9f3a9b92687c1fadf4d737b4 /test/DebugProtoTest.thrift | |
parent | 7e3b866a3558411e99986144061339c21f6125c0 (diff) | |
download | thrift-e80a194c473e94f90b30919da29cbe9b4542e244.tar.gz |
THRIFT-1331. rb: Ruby library deserializes an empty map to nil
This patch properly detects when the metadata is omitted in Compact Protocol messages.
Patch: Armaan Sarkar
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1173300 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/DebugProtoTest.thrift')
-rw-r--r-- | test/DebugProtoTest.thrift | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift index 23d5d9737..b8b89b751 100644 --- a/test/DebugProtoTest.thrift +++ b/test/DebugProtoTest.thrift @@ -161,6 +161,10 @@ struct CompactProtoTestStruct { 49: map<byte, list<byte>> byte_list_map; } +// To be used to test the serialization of an empty map +struct SingleMapTestStruct { + 1: required map<i32, i32> i32_map; +} const CompactProtoTestStruct COMPACT_TEST = { 'a_byte' : 127, |