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

Function annotation_key_test

cpp/src/scalar_test.cpp:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void annotation_key_test() {
53 ASSERT_EQUAL(23, coerce<int64_t>(annotation_key(23)));
54 ASSERT_EQUAL(23u, get<uint64_t>(annotation_key(23)));
55 ASSERT_EQUAL("foo", coerce<std::string>(annotation_key("foo")));
56 ASSERT_EQUAL(scalar(symbol("foo")), annotation_key("foo"));
57}
58
59template <class T> T make(const char c) { T x; std::fill(x.begin(), x.end(), c); return x; }
60

Callers 1

mainFunction · 0.85

Calls 3

annotation_keyClass · 0.50
scalarClass · 0.50
symbolClass · 0.50

Tested by

no test coverage detected