| 74 | |
| 75 | template <typename T> |
| 76 | struct Diff : public DiffBase<T> { |
| 77 | Diff(const std::string_view textHeaderIn, const std::string_view jsonPathIn, |
| 78 | const std::optional<T>& value1, const std::optional<T>& value2) |
| 79 | : DiffBase<T>(textHeaderIn, jsonPathIn, value1, value2) {} |
| 80 | |
| 81 | Diff(const std::string_view textHeaderIn, const std::string_view jsonPathIn, |
| 82 | const T& value1, const T& value2) |
| 83 | : DiffBase<T>(textHeaderIn, jsonPathIn, value1, value2) {} |
| 84 | |
| 85 | virtual std::string value(std::size_t index, OutputFormat) const override { |
| 86 | return fmt::format("{}", DiffBase<T>::rawValue(index)); |
| 87 | } |
| 88 | }; |
| 89 | |
| 90 | struct DiffIdentifier : public DiffBase<std::array<uint8_t, sizeof(KTX_header2::identifier)>> { |
| 91 | DiffIdentifier(const std::string_view textHeaderIn, const std::string_view jsonPathIn, |
no outgoing calls
no test coverage detected