MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / write_helper

Function write_helper

tests/DCPS/Compiler/vread_vwrite/VreadVwriteTest.cpp:298–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296
297template <typename T>
298void write_helper(const T& sample, CORBA::String_out out)
299{
300 OpenDDS::DCPS::KeyOnly<const T> keyonly(sample);
301
302 rapidjson::StringBuffer buffer;
303 rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
304 OpenDDS::DCPS::JsonValueWriter<rapidjson::Writer<rapidjson::StringBuffer> > jvw(writer);
305
306 ASSERT_TRUE(vwrite(jvw, keyonly));
307 out = buffer.GetString();
308}
309
310TEST(VreadVwriteTest, KeyOnly_StructWithNoKeys)
311{

Callers 1

TESTFunction · 0.85

Calls 1

vwriteFunction · 0.50

Tested by

no test coverage detected