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

Function AssertEqual

cpp/src/arrow/flight/test_util.cc:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void AssertEqual(const FlightInfo& expected, const FlightInfo& actual) {
110 ipc::DictionaryMemo expected_memo;
111 ipc::DictionaryMemo actual_memo;
112 ASSERT_OK_AND_ASSIGN(auto ex_schema, expected.GetSchema(&expected_memo));
113 ASSERT_OK_AND_ASSIGN(auto actual_schema, actual.GetSchema(&actual_memo));
114
115 AssertSchemaEqual(*ex_schema, *actual_schema);
116 ASSERT_EQ(expected.total_records(), actual.total_records());
117 ASSERT_EQ(expected.total_bytes(), actual.total_bytes());
118
119 ASSERT_EQ(expected.descriptor(), actual.descriptor());
120 ASSERT_THAT(actual.endpoints(), ::testing::ContainerEq(expected.endpoints()));
121}
122
123std::shared_ptr<Schema> ExampleIntSchema() {
124 auto f0 = field("f0", int8());

Callers 2

TEST_FMethod · 0.85
ASSERT_OK_AND_ASSIGNMethod · 0.85

Calls 1

total_bytesMethod · 0.80

Tested by

no test coverage detected