| 388 | template <typename T> |
| 389 | struct DiffComplex { |
| 390 | DiffComplex(const std::string_view textHeaderIn, const std::string_view jsonPathIn, |
| 391 | const std::optional<T>& value1, const std::optional<T>& value2) |
| 392 | : textHeader(textHeaderIn), jsonPath(jsonPathIn), values(), |
| 393 | different((value1.has_value() && value2.has_value()) |
| 394 | ? value1->isDifferent(*value2) |
| 395 | : (!value1.has_value() || !value2.has_value()) ? true : false) { |
| 396 | values[0] = value1; |
| 397 | values[1] = value2; |
| 398 | } |
| 399 | |
| 400 | DiffComplex(const std::string_view textHeaderIn, const std::string_view jsonPathIn, |
| 401 | const T& value1, const T& value2) |
nothing calls this directly
no test coverage detected