| 43 | }; |
| 44 | |
| 45 | static std::vector<DecimalValueAndScale> GetDecimalValuesAndScales() { |
| 46 | const std::vector<std::string>& value_strs = GetValuesAsString(); |
| 47 | std::vector<DecimalValueAndScale> result(value_strs.size()); |
| 48 | for (size_t i = 0; i < value_strs.size(); ++i) { |
| 49 | int32_t precision; |
| 50 | ARROW_CHECK_OK(Decimal128::FromString(value_strs[i], &result[i].decimal, |
| 51 | &result[i].scale, &precision)); |
| 52 | } |
| 53 | return result; |
| 54 | } |
| 55 | |
| 56 | static void FromString(benchmark::State& state) { // NOLINT non-const reference |
| 57 | const std::vector<std::string>& values = GetValuesAsString(); |
no test coverage detected