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

Function test_message_defaults

cpp/src/message_test.cpp:41–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 ASSERT_EQUAL(scalar(#ATTR), m.ATTR())
40
41void test_message_defaults() {
42 message m;
43 ASSERT(m.body().empty());
44 ASSERT(m.id().empty());
45 ASSERT(m.user().empty());
46 ASSERT(m.to().empty());
47 ASSERT(m.subject().empty());
48 ASSERT(m.reply_to().empty());
49 ASSERT(m.correlation_id().empty());
50 ASSERT(m.content_type().empty());
51 ASSERT(m.content_encoding().empty());
52 ASSERT(m.group_id().empty());
53 ASSERT(m.reply_to_group_id().empty());
54 ASSERT_EQUAL(0, m.expiry_time().milliseconds());
55 ASSERT_EQUAL(0, m.creation_time().milliseconds());
56
57 ASSERT_EQUAL(false, m.inferred());
58 ASSERT_EQUAL(false, m.durable());
59 ASSERT_EQUAL(0, m.ttl().milliseconds());
60 ASSERT_EQUAL(message::default_priority, m.priority());
61 ASSERT_EQUAL(false, m.first_acquirer());
62 ASSERT_EQUAL(0u, m.delivery_count());
63}
64
65void test_message_properties() {
66 message m("hello");

Callers 1

mainFunction · 0.85

Calls 15

bodyMethod · 0.80
emptyMethod · 0.45
idMethod · 0.45
userMethod · 0.45
toMethod · 0.45
subjectMethod · 0.45
reply_toMethod · 0.45
correlation_idMethod · 0.45
content_typeMethod · 0.45
content_encodingMethod · 0.45
group_idMethod · 0.45
reply_to_group_idMethod · 0.45

Tested by

no test coverage detected