MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / check

Function check

src/DataTypes/tests/gtest_dataTypeToAST.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using namespace DB;
9
10static void check(const std::string & type_name)
11{
12 auto type = DataTypeFactory::instance().get(type_name);
13 auto ast = dataTypeToAST(type);
14 auto new_type = DataTypeFactory::instance().get(ast);
15 EXPECT_EQ(type->getName(), new_type->getName());
16}
17
18TEST(DataTypeToAST, SimpleTypes)
19{

Callers 8

TESTFunction · 0.70
enqueueQueryImplMethod · 0.50
validateGroupByKeyTypeFunction · 0.50
hasDynamicTypeFunction · 0.50
hasAggregateFunctionTypeFunction · 0.50

Calls 3

dataTypeToASTFunction · 0.85
getMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected