| 27 | |
| 28 | template <int npanes> |
| 29 | static void |
| 30 | ValidateVirtualLineToRealLineMap( |
| 31 | const std::vector<std::array<int, npanes>>& vlines, |
| 32 | const std::array<int, npanes>& nlines) |
| 33 | { |
| 34 | int line[npanes]{}; |
| 35 | for (const auto& v : vlines) |
| 36 | { |
| 37 | for (int pane = 0; pane < npanes; ++pane) |
| 38 | { |
| 39 | if (v[pane] != DiffMap::GHOST_MAP_ENTRY) |
| 40 | { |
| 41 | assert(line[pane] == v[pane]); |
| 42 | ++line[pane]; |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | for (int pane = 0; pane < npanes; ++pane) |
| 47 | assert(line[pane] == nlines[pane]); |
| 48 | } |
| 49 | |
| 50 | template <int npanes> |
| 51 | static void |
no test coverage detected