justinli500 commented on code in PR #49855:
URL: https://github.com/apache/arrow/pull/49855#discussion_r4774459226
##########
cpp/src/arrow/io/memory_test.cc:
##########
@@ -761,29 +774,37 @@ TEST(RangeReadCache, Basics) {
ASSERT_OK(cache.Cache({{10, 4}, {14, 0}, {15, 4}}));
ASSERT_OK_AND_ASSIGN(auto buf, cache.Read({20, 2}));
- AssertBufferEqual(*buf, "uv");
+ ASSERT_TRUE(buf);
+ AssertBufferEqual(**buf, "uv");
Review Comment:
Agreed - I ended up using one shared helper (`AssertCachedRead`) instead of
a lambda per test since the same checks were repeated in multiple tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]