yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
test_utils.h File Reference
#include <string>
#include <vector>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "absl/strings/str_format.h"
#include "imgui_test_engine/imgui_te_context.h"
#include "app/rom.h"

Go to the source code of this file.

Classes

class  yaze::test::TestRomManager
 Utility class for handling test ROM files. More...
 
class  yaze::test::TestRomManager::BoundRomTest
 
class  yaze::test::RomDependentTest
 Test fixture for ROM-dependent tests. More...
 

Namespaces

namespace  yaze
 Main namespace for the application.
 
namespace  yaze::test
 
namespace  yaze::test::gui
 

Macros

#define IMGUI_DEFINE_MATH_OPERATORS
 
#define YAZE_ROM_TEST(test_case_name, test_name)
 Test macro for ROM-dependent tests.
 

Functions

void yaze::test::gui::LoadRomInTest (ImGuiTestContext *ctx, const std::string &rom_path)
 
void yaze::test::gui::OpenEditorInTest (ImGuiTestContext *ctx, const std::string &editor_name)
 

Macro Definition Documentation

◆ IMGUI_DEFINE_MATH_OPERATORS

#define IMGUI_DEFINE_MATH_OPERATORS

Definition at line 5 of file test_utils.h.

◆ YAZE_ROM_TEST

#define YAZE_ROM_TEST (   test_case_name,
  test_name 
)
Value:
TEST(test_case_name, test_name) { \
yaze::test::TestRomManager::SkipIfRomTestingDisabled(#test_case_name "." #test_name); \
YAZE_ROM_TEST_BODY_##test_case_name##_##test_name(); \
} \
void YAZE_ROM_TEST_BODY_##test_case_name##_##test_name()

Test macro for ROM-dependent tests.

Definition at line 173 of file test_utils.h.