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

Function test_message_print

cpp/src/message_test.cpp:197–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void test_message_print() {
198 message m("hello");
199 m.to("to");
200 m.user("user");
201 m.subject("subject");
202 m.content_type("weird");
203 m.correlation_id(23);
204 m.properties().put("foo", "bar");
205 m.properties().put("num", 9);
206 m.delivery_annotations().put("deliverme", "please");
207 ASSERT_EQUAL("Message{address=\"to\", user_id=\"user\", subject=\"subject\", correlation_id=23, content_type=\"weird\", body=\"hello\"}", to_string(m));
208}
209
210}
211

Callers 1

mainFunction · 0.85

Calls 8

to_stringFunction · 0.70
toMethod · 0.45
userMethod · 0.45
subjectMethod · 0.45
content_typeMethod · 0.45
correlation_idMethod · 0.45
putMethod · 0.45
propertiesMethod · 0.45

Tested by

no test coverage detected