| 39 | } |
| 40 | |
| 41 | void message_id_test() { |
| 42 | ASSERT_EQUAL(23, coerce<int64_t>(message_id(23))); |
| 43 | ASSERT_EQUAL(23u, get<uint64_t>(message_id(23))); |
| 44 | ASSERT(message_id("foo") != message_id(binary("foo"))); |
| 45 | ASSERT_EQUAL(scalar("foo"), message_id("foo")); |
| 46 | ASSERT_EQUAL("foo", coerce<std::string>(message_id("foo"))); |
| 47 | ASSERT(message_id("a") < message_id("z")); |
| 48 | uuid r = uuid::random(); |
| 49 | ASSERT_EQUAL(r, get<uuid>(message_id(r))); |
| 50 | } |
| 51 | |
| 52 | void annotation_key_test() { |
| 53 | ASSERT_EQUAL(23, coerce<int64_t>(annotation_key(23))); |
no test coverage detected