t1() ->
{ok, Transport} = thrift_memory_buffer:new(),
- {ok, Protocol} = thrift_binary_protocol:new(Transport),
+ {ok, Protocol0} = thrift_binary_protocol:new(Transport),
TestData = test_data(),
- ok = thrift_protocol:write(Protocol,
+ {Protocol1, ok} = thrift_protocol:write(Protocol0,
{{struct, element(2, thriftTest_types:struct_info('xtruct'))},
TestData}),
- {ok, Result} = thrift_protocol:read(Protocol,
+ {_Protocol2, {ok, Result}} = thrift_protocol:read(Protocol1,
{struct, element(2, thriftTest_types:struct_info('xtruct'))},
'xtruct'),
t2() ->
{ok, Transport} = thrift_memory_buffer:new(),
- {ok, Protocol} = thrift_binary_protocol:new(Transport),
+ {ok, Protocol0} = thrift_binary_protocol:new(Transport),
TestData = test_data(),
- ok = thrift_protocol:write(Protocol,
+ {Protocol1, ok} = thrift_protocol:write(Protocol0,
{{struct, element(2, thriftTest_types:struct_info('xtruct'))},
TestData}),
- {ok, Result} = thrift_protocol:read(Protocol,
+ {_Protocol2, {ok, Result}} = thrift_protocol:read(Protocol1,
{struct, element(2, thriftTest_types:struct_info('xtruct3'))},
'xtruct3'),
t3() ->
{ok, Transport} = thrift_memory_buffer:new(),
- {ok, Protocol} = thrift_binary_protocol:new(Transport),
+ {ok, Protocol0} = thrift_binary_protocol:new(Transport),
TestData = #bools{im_true = true, im_false = false},
- ok = thrift_protocol:write(Protocol,
+ {Protocol1, ok} = thrift_protocol:write(Protocol0,
{{struct, element(2, thriftTest_types:struct_info('bools'))},
TestData}),
- {ok, Result} = thrift_protocol:read(Protocol,
+ {_Protocol2, {ok, Result}} = thrift_protocol:read(Protocol1,
{struct, element(2, thriftTest_types:struct_info('bools'))},
'bools'),