diff options
Diffstat (limited to 'src/mongo/base/data_type_string_data_test.cpp')
-rw-r--r-- | src/mongo/base/data_type_string_data_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/base/data_type_string_data_test.cpp b/src/mongo/base/data_type_string_data_test.cpp index f88a581e6a2..b2fb8b29a50 100644 --- a/src/mongo/base/data_type_string_data_test.cpp +++ b/src/mongo/base/data_type_string_data_test.cpp @@ -45,9 +45,9 @@ TEST(DataTypeStringData, Basic) { { DataRangeCursor drc(buf, buf + sizeof(buf)); - ASSERT_OK(drc.writeAndAdvance(Terminated<'\0', StringData>(a))); - ASSERT_OK(drc.writeAndAdvance(Terminated<'\0', StringData>(b))); - ASSERT_OK(drc.writeAndAdvance(Terminated<'\0', StringData>(c))); + ASSERT_OK(drc.writeAndAdvanceNoThrow(Terminated<'\0', StringData>(a))); + ASSERT_OK(drc.writeAndAdvanceNoThrow(Terminated<'\0', StringData>(b))); + ASSERT_OK(drc.writeAndAdvanceNoThrow(Terminated<'\0', StringData>(c))); ASSERT_EQUALS(1 + 2 + 3 + 3, drc.data() - buf); } @@ -57,13 +57,13 @@ TEST(DataTypeStringData, Basic) { Terminated<'\0', StringData> tsd; - ASSERT_OK(cdrc.readAndAdvance(&tsd)); + ASSERT_OK(cdrc.readAndAdvanceNoThrow(&tsd)); ASSERT_EQUALS(a, tsd.value); - ASSERT_OK(cdrc.readAndAdvance(&tsd)); + ASSERT_OK(cdrc.readAndAdvanceNoThrow(&tsd)); ASSERT_EQUALS(b, tsd.value); - ASSERT_OK(cdrc.readAndAdvance(&tsd)); + ASSERT_OK(cdrc.readAndAdvanceNoThrow(&tsd)); ASSERT_EQUALS(c, tsd.value); } } |