MCPcopy Create free account
hub / github.com/apache/impala / TEST_F

Function TEST_F

be/src/kudu/util/faststring-test.cc:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34class FaststringTest : public KuduTest {};
35
36TEST_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

Callers

nothing calls this directly

Calls 14

GetRandomSeed32Function · 0.85
RandomStringFunction · 0.85
moveFunction · 0.85
shrink_to_fitMethod · 0.80
resizeMethod · 0.80
push_backMethod · 0.80
getMethod · 0.65
capacityMethod · 0.45
appendMethod · 0.45
UniformMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected