1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#pragma once
#include <trompeloeil.hpp>
#include "engine/data/bounds.hpp"
#include "interfaces/matrix.hpp"
template <typename Element>
class MockMatrix : public IMatrix<Element>
{
public:
// NOLINTNEXTLINE(modernize-use-trailing-return-type, readability-identifier-length)
MAKE_MOCK1(fill, void(Element element), noexcept override);
// NOLINTNEXTLINE(modernize-use-trailing-return-type, readability-identifier-length)
MAKE_MOCK1(get, Element(const Vector2 &pos), const noexcept override);
// NOLINTNEXTLINE(modernize-use-trailing-return-type, readability-identifier-length)
MAKE_MOCK2(set, void(const Vector2 &pos, Element element), noexcept override);
// NOLINTNEXTLINE(modernize-use-trailing-return-type)
MAKE_MOCK0(get_row_cnt, uint32_t(), const noexcept override);
// NOLINTNEXTLINE(modernize-use-trailing-return-type)
MAKE_MOCK0(get_column_cnt, uint32_t(), const noexcept override);
// NOLINTNEXTLINE(modernize-use-trailing-return-type)
MAKE_MOCK0(get_size, Bounds(), const noexcept override);
// NOLINTNEXTLINE(modernize-use-trailing-return-type)
MAKE_MOCK0(begin, MatrixIterator<Element>(), const noexcept override);
// NOLINTNEXTLINE(modernize-use-trailing-return-type)
MAKE_MOCK0(end, MatrixIterator<Element>(), const noexcept override);
};
|