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

Function AssertBufferEqual

cpp/src/arrow/testing/gtest_util.cc:218–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void AssertBufferEqual(const Buffer& buffer, const std::vector<uint8_t>& expected) {
219 ASSERT_EQ(static_cast<size_t>(buffer.size()), expected.size())
220 << "Mismatching buffer size";
221 const uint8_t* buffer_data = buffer.data();
222 for (size_t i = 0; i < expected.size(); ++i) {
223 ASSERT_EQ(buffer_data[i], expected[i]);
224 }
225}
226
227void AssertBufferEqual(const Buffer& buffer, std::string_view expected) {
228 ASSERT_EQ(static_cast<size_t>(buffer.size()), expected.length())

Callers 15

TESTFunction · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85
AssertCudaBufferEqualsFunction · 0.85
TEST_FFunction · 0.85
TestWriteMethod · 0.85
TestWriteMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TestReadsMethod · 0.85
TESTFunction · 0.85
TestSlowInputStreamFunction · 0.85

Calls 5

ToHexStringMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45
EqualsMethod · 0.45

Tested by

no test coverage detected