aboutsummaryrefslogtreecommitdiff
path: root/src/test/ScriptTest.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-30 16:41:22 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-30 16:41:22 +0100
commit2d5721820063031b65d64b1b2b1b4797b71935af (patch)
tree405a52da123cda5c2b6845328da8bf6d0621274b /src/test/ScriptTest.h
parent7a07c56d572a6f30d0aa611bd566197bc04c3b33 (diff)
`make format`
Diffstat (limited to 'src/test/ScriptTest.h')
-rw-r--r--src/test/ScriptTest.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/ScriptTest.h b/src/test/ScriptTest.h
index 9a71ba7..1bbfdd3 100644
--- a/src/test/ScriptTest.h
+++ b/src/test/ScriptTest.h
@@ -1,22 +1,24 @@
#pragma once
-#include <gtest/gtest.h>
#include <gmock/gmock.h>
+#include <gtest/gtest.h>
-#include <crepe/manager/ComponentManager.h>
-#include <crepe/system/ScriptSystem.h>
#include <crepe/api/BehaviorScript.h>
#include <crepe/api/Script.h>
+#include <crepe/manager/ComponentManager.h>
+#include <crepe/system/ScriptSystem.h>
class ScriptTest : public testing::Test {
protected:
crepe::Mediator mediator;
+
public:
crepe::ComponentManager component_manager{mediator};
crepe::ScriptSystem system{mediator};
class MyScript : public crepe::Script {
// NOTE: explicitly stating `public:` is not required on actual scripts
+
public:
MOCK_METHOD(void, init, (), (override));
MOCK_METHOD(void, update, (), (override));