be/test/util/faststring_test.cpp
// Test that, if the string contents is shorter than the initial capacity
// of the faststring, shrink_to_fit() leaves the string in the built-in
// array.
// NOLINTNEXTLINE
Test that, if the string contents is shorter than the initial capacity
of the faststring, shrink_to_fit() leaves the string in the built-in
array.
NOLINTNEXTLINE
Test that if the string contents is shorter than the initial capacity of the faststring shrink_to_fit () leaves the string in the built - in array . NOLINTNEXTLINE
TEST_F(FaststringTest, TestShrinkToFit_SmallerThanInitialCapacity) {
    faststring s;
    s.append("hello");
    s.shrink_to_fit();
    ASSERT_EQ(faststring::kInitialCapacity, s.capacity());
}
TEST_F ( FaststringTest , TestShrinkToFit_SmallerThanInitialCapacity ) { faststring s ; s . append ( " " ) ; s . shrink_to_fit ( ) ; ASSERT_EQ ( faststring :: kInitialCapacity , s . capacity ( ) ) ; }
Test that, if the string contents is shorter than the initial capacity
of the faststring, shrink_to_fit() leaves the string in the built-in
array.
Test that if the string contents is shorter than the initial capacity of the faststring shrink_to_fit () leaves the string in the built - in array .