| 21 | enum class JSONParseMode { PREFER_CORRECTNESS = 0, PREFER_PERFORMANCE = 1 }; |
| 22 | |
| 23 | static Result<Value> jsonToValue(const std::string_view& str, JSONParseMode parseMode) { |
| 24 | switch (parseMode) { |
| 25 | case JSONParseMode::PREFER_CORRECTNESS: |
| 26 | return correctJsonToValue(str); |
| 27 | case JSONParseMode::PREFER_PERFORMANCE: |
| 28 | return fastJsonToValue(str); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | class ValueUtilsFixture : public ::testing::TestWithParam<JSONParseMode> { |
| 33 | public: |
no test coverage detected