| 31 | class SqlRpcRowCodecTest : public ::testing::Test {}; |
| 32 | |
| 33 | void 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 | |
| 46 | TEST_F(SqlRpcRowCodecTest, TestSingleSlice) { |
| 47 | hybridse::codec::Schema schema; |