| 34 | // is also exercised. |
| 35 | template<typename InternalType> |
| 36 | void ValidateValues(DictDecoder<InternalType>& decoder, |
| 37 | const vector<InternalType>& values, int skip_at, int skip_count, bool skip_success) { |
| 38 | for (int i = 0; i < skip_at; ++i) { |
| 39 | InternalType j; |
| 40 | ASSERT_TRUE(decoder.GetNextValue(&j)); |
| 41 | EXPECT_EQ(values[i], j) << i; |
| 42 | } |
| 43 | EXPECT_EQ(decoder.SkipValues(skip_count), skip_success); |
| 44 | for (int i = skip_at + skip_count; i < values.size(); ++i) { |
| 45 | InternalType j; |
| 46 | ASSERT_TRUE(decoder.GetNextValue(&j)); |
| 47 | EXPECT_EQ(values[i], j) << i; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | template<typename InternalType, parquet::Type::type PARQUET_TYPE> |
| 52 | void ValidateDict(const vector<InternalType>& values, |
no test coverage detected