This is an automated email from the ASF dual-hosted git repository. bmahler pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 6c9801e924708f213f8ea3d509206cc54e1eca4e Author: Benjamin Mahler <[email protected]> AuthorDate: Tue Oct 16 11:53:53 2018 -0700 Added a test to ensure UUID size, variant, version. Review: https://reviews.apache.org/r/69052 --- 3rdparty/stout/tests/uuid_tests.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/3rdparty/stout/tests/uuid_tests.cpp b/3rdparty/stout/tests/uuid_tests.cpp index 31cc016..a8d834f 100644 --- a/3rdparty/stout/tests/uuid_tests.cpp +++ b/3rdparty/stout/tests/uuid_tests.cpp @@ -57,6 +57,16 @@ TEST(UUIDTest, Test) } +TEST(UUIDTest, Metadata) +{ + UUID uuid = UUID::random(); + + EXPECT_EQ(16u, uuid.size()); + EXPECT_EQ(UUID::variant_rfc_4122, uuid.variant()); + EXPECT_EQ(UUID::version_random_number_based, uuid.version()); +} + + TEST(UUIDTest, MalformedUUID) { EXPECT_SOME(UUID::fromBytes(UUID::random().toBytes()));
