yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::test::OverworldE2ETest Class Reference

Comprehensive End-to-End Overworld Test Suite. More...

Inheritance diagram for yaze::test::OverworldE2ETest:
Collaboration diagram for yaze::test::OverworldE2ETest:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
absl::Status ExtractGoldenData (const std::string &rom_path, const std::string &output_path)
 
bool ValidateROMAgainstGoldenData (Rom &rom, const std::string &)
 

Protected Attributes

std::string vanilla_rom_path_
 
std::string vanilla_test_path_
 
std::string edited_test_path_
 
std::string golden_data_path_
 

Detailed Description

Comprehensive End-to-End Overworld Test Suite.

This test suite validates the complete overworld editing workflow:

  1. Load vanilla ROM and extract golden data
  2. Apply ZSCustomOverworld ASM patches
  3. Make various edits to overworld data
  4. Validate edits are correctly saved and loaded
  5. Compare before/after states using golden data
  6. Test integration with existing test infrastructure

Definition at line 26 of file overworld_e2e_test.cc.

Member Function Documentation

◆ SetUp()

void yaze::test::OverworldE2ETest::SetUp ( )
inlineoverrideprotected

◆ TearDown()

void yaze::test::OverworldE2ETest::TearDown ( )
inlineoverrideprotected

Definition at line 51 of file overworld_e2e_test.cc.

References edited_test_path_, golden_data_path_, and vanilla_test_path_.

◆ ExtractGoldenData()

absl::Status yaze::test::OverworldE2ETest::ExtractGoldenData ( const std::string &  rom_path,
const std::string &  output_path 
)
inlineprotected

Definition at line 65 of file overworld_e2e_test.cc.

◆ ValidateROMAgainstGoldenData()

bool yaze::test::OverworldE2ETest::ValidateROMAgainstGoldenData ( Rom rom,
const std::string &   
)
inlineprotected

Definition at line 79 of file overworld_e2e_test.cc.

References yaze::Rom::ReadByte(), yaze::Rom::size(), and yaze::Rom::title().

Here is the call graph for this function:

Member Data Documentation

◆ vanilla_rom_path_

std::string yaze::test::OverworldE2ETest::vanilla_rom_path_
protected

Definition at line 94 of file overworld_e2e_test.cc.

Referenced by SetUp().

◆ vanilla_test_path_

std::string yaze::test::OverworldE2ETest::vanilla_test_path_
protected

Definition at line 95 of file overworld_e2e_test.cc.

Referenced by SetUp(), and TearDown().

◆ edited_test_path_

std::string yaze::test::OverworldE2ETest::edited_test_path_
protected

Definition at line 96 of file overworld_e2e_test.cc.

Referenced by SetUp(), and TearDown().

◆ golden_data_path_

std::string yaze::test::OverworldE2ETest::golden_data_path_
protected

Definition at line 97 of file overworld_e2e_test.cc.

Referenced by SetUp(), and TearDown().


The documentation for this class was generated from the following file: