| 156 | |
| 157 | template <typename MemoTable, typename Value> |
| 158 | void 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 | |
| 164 | template <typename MemoTable> |
| 165 | void AssertGetNull(MemoTable& table, int32_t expected) { |