aboutsummaryrefslogtreecommitdiff
path: root/test/mocks/matrix.hpp
blob: 4b193b23d86a92370342d0fb42e89e4ff3f81d40 (plain)
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
#pragma once

#include "interfaces/matrix.hpp"

#include <trompeloeil.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(begin, MatrixIterator<Element>(), const noexcept override);

	// NOLINTNEXTLINE(modernize-use-trailing-return-type)
	MAKE_MOCK0(end, MatrixIterator<Element>(), const noexcept override);
};