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

Function TEST_F

bolt/vector/tests/VariantVectorTest.cpp:33–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33TEST_F(VariantVectorTest, Basic) {
34 auto type = VARIANT();
35 auto vector = VariantVector::create(pool(), type, 10);
36
37 EXPECT_EQ(vector->size(), 10);
38 EXPECT_EQ(vector->encoding(), VectorEncoding::Simple::VARIANT);
39 EXPECT_EQ(vector->type(), type);
40
41 auto valueVector = vector->valueChildVector();
42 auto metadataVector = vector->metadataChildVector();
43
44 EXPECT_EQ(valueVector->size(), 10);
45 EXPECT_EQ(metadataVector->size(), 10);
46 EXPECT_EQ(valueVector->typeKind(), TypeKind::VARBINARY);
47 EXPECT_EQ(metadataVector->typeKind(), TypeKind::VARBINARY);
48}
49
50TEST_F(VariantVectorTest, Slicing) {
51 auto type = VARIANT();

Callers

nothing calls this directly

Calls 15

VARIANTFunction · 0.85
nbytesFunction · 0.85
fillBitsFunction · 0.85
backMethod · 0.80
createFunction · 0.50
poolFunction · 0.50
to_stringFunction · 0.50
StringViewClass · 0.50
setNullFunction · 0.50
sizeMethod · 0.45
encodingMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected