MCPcopy Create free account
hub / github.com/apache/orc / TEST

Function TEST

c++/test/TestCache.cc:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace orc {
28
29 TEST(TestReadRangeCombiner, testBasics) {
30 ReadRangeCombiner combinator{0, 100};
31 /// Ranges with partial overlap and identical offsets
32 std::vector<ReadRange> ranges{{0, 15}, {5, 11}, {5, 15}};
33 std::vector<ReadRange> result = combinator.coalesce(std::move(ranges));
34 std::vector<ReadRange> expect{{0, 20}};
35 ASSERT_EQ(result, expect);
36 }
37
38 TEST(TestCoalesceReadRanges, testBasics) {
39 auto check = [](std::vector<ReadRange> ranges, std::vector<ReadRange> expected) -> void {

Callers

nothing calls this directly

Calls 9

checkFunction · 0.85
getDefaultPoolFunction · 0.85
coalesceMethod · 0.80
cacheMethod · 0.80
evictEntriesBeforeMethod · 0.80
sizeMethod · 0.65
readMethod · 0.65
dataMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected