summaryrefslogtreecommitdiff
path: root/src/mongo/base
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2022-05-25 02:08:48 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-25 03:10:36 +0000
commit65100ef338488cf55acc62a30e0af1442eb376bd (patch)
treee076d8289fc4a094b531b66ec0b809456df4d2ac /src/mongo/base
parent1c51ea79963b38670a7258f0ade1fd7475f7df67 (diff)
downloadmongo-65100ef338488cf55acc62a30e0af1442eb376bd.tar.gz
SERVER-66646 UUID::isUUIDString without regex
Diffstat (limited to 'src/mongo/base')
-rw-r--r--src/mongo/base/uuid_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/base/uuid_test.cpp b/src/mongo/base/uuid_test.cpp
index 8f383acb44e..a0742d8e8aa 100644
--- a/src/mongo/base/uuid_test.cpp
+++ b/src/mongo/base/uuid_test.cpp
@@ -51,6 +51,8 @@ TEST(UUIDTest, UUIDCollisionTest) {
}
TEST(UUIDTest, isUUIDStringTest) {
+ ASSERT(!UUID::isUUIDString(""));
+
// Several valid strings
ASSERT(UUID::isUUIDString("00000000-0000-4000-8000-000000000000"));
ASSERT(UUID::isUUIDString("01234567-9abc-4def-9012-3456789abcde"));