| 34 | class FaststringTest : public KuduTest {}; |
| 35 | |
| 36 | TEST_F(FaststringTest, TestShrinkToFit_Empty) { |
| 37 | faststring s; |
| 38 | s.shrink_to_fit(); |
| 39 | ASSERT_EQ(faststring::kInitialCapacity, s.capacity()); |
| 40 | } |
| 41 | |
| 42 | // Test that, if the string contents is shorter than the initial capacity |
| 43 | // of the faststring, shrink_to_fit() leaves the string in the built-in |
nothing calls this directly
no test coverage detected