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

Function AssertGetOrInsert

cpp/src/arrow/util/hashing_test.cc:158–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156
157template <typename MemoTable, typename Value>
158void AssertGetOrInsert(MemoTable& table, const Value& v, int32_t expected) {
159 int32_t memo_index;
160 ASSERT_OK(table.GetOrInsert(v, &memo_index));
161 ASSERT_EQ(memo_index, expected);
162}
163
164template <typename MemoTable>
165void AssertGetNull(MemoTable& table, int32_t expected) {

Callers 1

TESTFunction · 0.85

Calls 1

GetOrInsertMethod · 0.45

Tested by

no test coverage detected