MCPcopy Create free account
hub / github.com/bytedance/bolt / TEST_F

Function TEST_F

bolt/exec/tests/ContainerRowSerdeTest.cpp:223–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221};
222
223TEST_F(ContainerRowSerdeTest, variantCompare) {
224 auto data = VariantVector::create(pool(), VARIANT(), 2);
225 auto* values =
226 data->valueChildVector()->asUnchecked<FlatVector<StringView>>();
227 auto* metadata =
228 data->metadataChildVector()->asUnchecked<FlatVector<StringView>>();
229 const std::string longValue(48, 'v');
230 const std::string longMetadata(36, 'm');
231
232 values->set(0, StringView("short"));
233 metadata->set(0, StringView("meta"));
234 values->set(1, StringView(longValue));
235 metadata->set(1, StringView(longMetadata));
236
237 testCompare(data);
238 allocator_.clear();
239}
240
241TEST_F(ContainerRowSerdeTest, variantHashWithSegmentedInput) {
242 const std::string value(64, 'v');

Callers

nothing calls this directly

Calls 15

VARIANTFunction · 0.85
appendSerializedInt32Function · 0.85
ARRAYFunction · 0.85
ROWFunction · 0.85
MAPFunction · 0.85
makeArrayVectorFunction · 0.85
fuzzMethod · 0.80
createFunction · 0.50
poolFunction · 0.50
StringViewClass · 0.50
testRoundTripFunction · 0.50
serializeFunction · 0.50

Tested by

no test coverage detected