MCPcopy Create free account
hub / github.com/apache/arrow / CheckSchemaRoundtrip

Method CheckSchemaRoundtrip

cpp/src/arrow/ipc/read_write_test.cc:234–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232 void SetUp() {}
233
234 void CheckSchemaRoundtrip(const Schema& schema) {
235 ASSERT_OK_AND_ASSIGN(std::shared_ptr<Buffer> buffer, SerializeSchema(schema));
236
237 io::BufferReader reader(buffer);
238 DictionaryMemo in_memo;
239 ASSERT_OK_AND_ASSIGN(auto actual_schema, ReadSchema(&reader, &in_memo));
240 AssertSchemaEqual(schema, *actual_schema, /* check_metadata= */ true);
241 }
242};
243
244TEST_F(TestSchemaMetadata, PrimitiveFields) {

Callers

nothing calls this directly

Calls 2

SerializeSchemaFunction · 0.70
ASSERT_OK_AND_ASSIGNFunction · 0.50

Tested by

no test coverage detected