MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / InitSchema

Function InitSchema

src/codec/sql_rpc_row_codec_test.cc:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31class SqlRpcRowCodecTest : public ::testing::Test {};
32
33void InitSchema(hybridse::codec::Schema* schema) {
34 hybridse::type::ColumnDef* column;
35 column = schema->Add();
36 column->set_name("col_0");
37 column->set_type(hybridse::type::kInt32);
38 column = schema->Add();
39 column->set_name("col_1");
40 column->set_type(hybridse::type::kFloat);
41 column = schema->Add();
42 column->set_name("col_2");
43 column->set_type(hybridse::type::kVarchar);
44}
45
46TEST_F(SqlRpcRowCodecTest, TestSingleSlice) {
47 hybridse::codec::Schema schema;

Callers 1

TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected