MCPcopy Create free account
hub / github.com/apache/qpid-proton / test_data_ostream

Function test_data_ostream

cpp/src/interop_test.cpp:53–58  ·  view source on GitHub ↗

Test data ostream operator

Source from the content-addressed store, hash-verified

51
52// Test data ostream operator
53void test_data_ostream() {
54 data dt(data::create());
55 decoder d(dt);
56 d.decode(read("primitives"));
57 ASSERT_EQUAL("true, false, 42, 42, -42, 12345, -12345, 12345, -12345, 0.125, 0.125", str(dt));
58}
59
60// Test extracting to exact AMQP types works correctly, extracting to invalid types fails.
61void test_decoder_primitives_exact() {

Callers 1

mainFunction · 0.85

Calls 3

readFunction · 0.85
strFunction · 0.70
decodeMethod · 0.45

Tested by

no test coverage detected