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

Function TEST_F

bolt/substrait/tests/FunctionTest.cpp:63–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61};
62
63TEST_F(FunctionTest, makeNames) {
64 std::string prefix = "n";
65 int size = 0;
66 std::vector<std::string> names = substraitParser_->makeNames(prefix, size);
67 ASSERT_EQ(names.size(), size);
68
69 size = 5;
70 names = substraitParser_->makeNames(prefix, size);
71 ASSERT_EQ(names.size(), size);
72 for (int i = 0; i < size; i++) {
73 std::string expected = "n_" + std::to_string(i);
74 ASSERT_EQ(names[i], expected);
75 }
76}
77
78TEST_F(FunctionTest, makeNodeName) {
79 std::string nodeName = substraitParser_->makeNodeName(1, 0);

Callers

nothing calls this directly

Calls 15

getNameBeforeDelimiterFunction · 0.85
setVectorFromVariantsFunction · 0.85
makeNodeNameMethod · 0.80
getIdxFromNodeNameMethod · 0.80
constructFunctionMapMethod · 0.80
strMethod · 0.80
isIntervalDayTimeMethod · 0.80
isIntervalYearMonthMethod · 0.80
to_stringFunction · 0.50
getDataFilePathFunction · 0.50
variantClass · 0.50
minFunction · 0.50

Tested by

no test coverage detected