MCPcopy Create free account
hub / github.com/apache/cloudberry / TEST_F

Function TEST_F

contrib/pax_storage/src/cpp/storage/orc/orc_test.cc:141–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139};
140
141TEST_F(OrcTest, WriteTuple) {
142 TupleTableSlot *tuple_slot = CreateTestTupleTableSlot();
143 auto local_fs = Singleton<LocalFileSystem>::GetInstance();
144 ASSERT_NE(nullptr, local_fs);
145
146 auto file_ptr = local_fs->Open(file_name_, fs::kWriteMode);
147 EXPECT_NE(nullptr, file_ptr.get());
148
149 OrcWriter::WriterOptions writer_options;
150 writer_options.rel_tuple_desc = tuple_slot->tts_tupleDescriptor;
151
152 auto writer = OrcWriter::CreateWriter(
153 writer_options, std::move(CreateTestSchemaTypes()), std::move(file_ptr));
154
155 writer->WriteTuple(tuple_slot);
156 writer->Close();
157
158 DeleteTestTupleTableSlot(tuple_slot);
159}
160
161TEST_F(OrcTest, OpenOrc) {
162 TupleTableSlot *tuple_slot = CreateTestTupleTableSlot();

Callers

nothing calls this directly

Calls 15

CreateTestTupleTableSlotFunction · 0.85
CreateTestSchemaTypesFunction · 0.85
DeleteTestTupleTableSlotFunction · 0.85
GenTextBufferFunction · 0.85
VerifyTestTupleTableSlotFunction · 0.85
Int32GetDatumFunction · 0.85
DatumGetInt32Function · 0.85
Palloc0Function · 0.85
InitAttribute_textFunction · 0.85
MakeTupleTableSlotFunction · 0.85
InitAttribute_int4Function · 0.85

Tested by

no test coverage detected