R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Tests.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <exception>
5#include <functional>
6#include <vector>
7
8#include "Zipper.hpp"
9#include "IndexedZipper.hpp"
10#include "Game.hpp"
11#include "GameMessage.hpp"
12#include "Registry.hpp"
13#include "Components.hpp"
14#include "Systems.hpp"
15
22void cleanup(void);
23
33int test_zipper(void);
34
44int test_indexed_zipper(void);
45
54int test_create_registry(void);
55
64int test_run_systems(void);
65
74int test_create_game(void);
75
84int test_run_update(void);
85
95int test_get_game_event(void);
96
106int test_send_msg(void);
107
115int test_stress(void);
116
124const std::vector<std::function<int(void)>> tests = {
134};
int test_get_game_event(void)
Test retrieving game events from the Game instance.
Definition Tests.cpp:162
int test_stress(void)
Test for stress and performance.
Definition Tests.cpp:210
int test_indexed_zipper(void)
Test the functionality of the IndexedZipper class.
Definition Tests.cpp:82
int test_create_registry(void)
Test function for creating a registry.
Definition Tests.cpp:104
int test_zipper(void)
Test the functionality of the Zipper class.
Definition Tests.cpp:60
int test_send_msg(void)
Test sending a message to the Game instance.
Definition Tests.cpp:183
const std::vector< std::function< int(void)> > tests
A collection of test functions to be executed.
Definition Tests.hpp:124
int test_run_systems(void)
Test function for running systems within the registry.
Definition Tests.cpp:119
int test_create_game(void)
Test function for creating a game.
Definition Tests.cpp:134
int test_run_update(void)
Test function for running the game's update cycle.
Definition Tests.cpp:147
void cleanup(void)
Cleans up any resources or states after tests.
Definition Tests.cpp:48