aboutsummaryrefslogtreecommitdiff
path: root/test/mocks/matrix.hpp
blob: 1602ebf1cb265782b107419a83f02297a97b8d14 (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 <gmock/gmock.h>

template <typename Element>
class MockMatrix : public IMatrix<Element>
{
public:
	// NOLINTNEXTLINE(modernize-use-trailing-return-type)
	MOCK_METHOD(void, fill, (Element element), (noexcept, override));

	// NOLINTNEXTLINE(modernize-use-trailing-return-type)
	MOCK_METHOD(Element, get, (const Vector2 &pos), (const, noexcept, override));

	// NOLINTNEXTLINE(modernize-use-trailing-return-type)
	MOCK_METHOD(void, set, (const Vector2 &pos, Element element), (noexcept, override));

	// NOLINTNEXTLINE(modernize-use-trailing-return-type)
	MOCK_METHOD(uint32_t, get_row_cnt, (), (const, noexcept, override));

	// NOLINTNEXTLINE(modernize-use-trailing-return-type)
	MOCK_METHOD(uint32_t, get_column_cnt, (), (const, noexcept, override));

	// NOLINTNEXTLINE(modernize-use-trailing-return-type)
	MOCK_METHOD(MatrixIterator<Element>, begin, (), (const, noexcept, override));

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