| 63 | |
| 64 | template <typename T> |
| 65 | [[nodiscard]] bool IsCorrectDataImpl(const std::string& filePath, uint64_t offset, Util::Span<const T> expectedSpan) |
| 66 | { |
| 67 | blob_metadata metadata; |
| 68 | TestUtil::ReadData<blob_metadata>(filePath, metadata, offset); |
| 69 | |
| 70 | std::vector<T> output(expectedSpan.Size()); |
| 71 | auto outputSpan = Util::MakeSpan(output); |
| 72 | TestUtil::ReadBlobFile<T>(filePath, metadata.offset, outputSpan); |
| 73 | |
| 74 | return outputSpan.Size() == expectedSpan.Size() && |
| 75 | std::equal(outputSpan.begin(), outputSpan.end(), expectedSpan.begin()); |
| 76 | } |
| 77 | |
| 78 | template <typename T> |
| 79 | [[nodiscard]] bool IsCorrectSubByteData(const std::string& filePath, uint64_t offset, Util::Span<const T> expectedSpan) |
no test coverage detected