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

ZSCustomOverworld upgrade testing suite. More...

#include <zscustomoverworld_test_suite.h>

Inheritance diagram for yaze::test::ZSCustomOverworldTestSuite:
Collaboration diagram for yaze::test::ZSCustomOverworldTestSuite:

Public Member Functions

 ZSCustomOverworldTestSuite ()=default
 
 ~ZSCustomOverworldTestSuite () override=default
 
std::string GetName () const override
 
TestCategory GetCategory () const override
 
absl::Status RunTests (TestResults &results) override
 
void DrawConfiguration () override
 
- Public Member Functions inherited from yaze::test::TestSuite
virtual ~TestSuite ()=default
 
virtual bool IsEnabled () const
 
virtual void SetEnabled (bool enabled)
 

Private Member Functions

void InitializeVersionData ()
 
void AddSkippedTest (TestResults &results, const std::string &test_name, const std::string &reason)
 
absl::Status ApplyVersionPatch (Rom &rom, const std::string &version)
 
bool ValidateVersionAddresses (Rom &rom, const std::string &version)
 
void RunVanillaBaselineTest (TestResults &results, Rom *rom)
 
void RunV2UpgradeTest (TestResults &results, Rom *rom)
 
void RunV3UpgradeTest (TestResults &results, Rom *rom)
 
void RunAddressValidationTest (TestResults &results, Rom *rom)
 
void RunFeatureToggleTest (TestResults &results, Rom *rom)
 
void RunDataIntegrityTest (TestResults &results, Rom *rom)
 

Private Attributes

bool test_vanilla_baseline_ = true
 
bool test_v2_upgrade_ = true
 
bool test_v3_upgrade_ = true
 
bool test_address_validation_ = true
 
bool test_feature_toggle_ = true
 
bool test_data_integrity_ = true
 
std::map< std::string, std::pair< uint32_t, uint8_t > > vanilla_data_
 
std::map< std::string, std::pair< uint32_t, uint8_t > > v2_data_
 
std::map< std::string, std::pair< uint32_t, uint8_t > > v3_data_
 

Additional Inherited Members

- Protected Attributes inherited from yaze::test::TestSuite
bool enabled_ = true
 

Detailed Description

ZSCustomOverworld upgrade testing suite.

This test suite validates ZSCustomOverworld version upgrades:

  • Vanilla -> v2 -> v3 upgrade path testing
  • Address validation for each version
  • Feature enablement/disablement testing
  • Data integrity validation during upgrades
  • Save compatibility between versions

Definition at line 25 of file zscustomoverworld_test_suite.h.

Constructor & Destructor Documentation

◆ ZSCustomOverworldTestSuite()

yaze::test::ZSCustomOverworldTestSuite::ZSCustomOverworldTestSuite ( )
default

◆ ~ZSCustomOverworldTestSuite()

yaze::test::ZSCustomOverworldTestSuite::~ZSCustomOverworldTestSuite ( )
overridedefault

Member Function Documentation

◆ GetName()

std::string yaze::test::ZSCustomOverworldTestSuite::GetName ( ) const
inlineoverridevirtual

◆ GetCategory()

TestCategory yaze::test::ZSCustomOverworldTestSuite::GetCategory ( ) const
inlineoverridevirtual

◆ RunTests()

◆ DrawConfiguration()

◆ InitializeVersionData()

void yaze::test::ZSCustomOverworldTestSuite::InitializeVersionData ( )
inlineprivate

Definition at line 115 of file zscustomoverworld_test_suite.h.

References v2_data_, v3_data_, and vanilla_data_.

Referenced by RunTests().

◆ AddSkippedTest()

void yaze::test::ZSCustomOverworldTestSuite::AddSkippedTest ( TestResults results,
const std::string &  test_name,
const std::string &  reason 
)
inlineprivate

◆ ApplyVersionPatch()

absl::Status yaze::test::ZSCustomOverworldTestSuite::ApplyVersionPatch ( Rom rom,
const std::string &  version 
)
inlineprivate

◆ ValidateVersionAddresses()

bool yaze::test::ZSCustomOverworldTestSuite::ValidateVersionAddresses ( Rom rom,
const std::string &  version 
)
inlineprivate

Definition at line 189 of file zscustomoverworld_test_suite.h.

References yaze::Rom::ReadByte(), v2_data_, v3_data_, and vanilla_data_.

Referenced by RunAddressValidationTest(), RunV2UpgradeTest(), RunV3UpgradeTest(), and RunVanillaBaselineTest().

Here is the call graph for this function:

◆ RunVanillaBaselineTest()

◆ RunV2UpgradeTest()

◆ RunV3UpgradeTest()

◆ RunAddressValidationTest()

◆ RunFeatureToggleTest()

◆ RunDataIntegrityTest()

Member Data Documentation

◆ test_vanilla_baseline_

bool yaze::test::ZSCustomOverworldTestSuite::test_vanilla_baseline_ = true
private

Definition at line 575 of file zscustomoverworld_test_suite.h.

Referenced by DrawConfiguration(), and RunTests().

◆ test_v2_upgrade_

bool yaze::test::ZSCustomOverworldTestSuite::test_v2_upgrade_ = true
private

Definition at line 576 of file zscustomoverworld_test_suite.h.

Referenced by DrawConfiguration(), and RunTests().

◆ test_v3_upgrade_

bool yaze::test::ZSCustomOverworldTestSuite::test_v3_upgrade_ = true
private

Definition at line 577 of file zscustomoverworld_test_suite.h.

Referenced by DrawConfiguration(), and RunTests().

◆ test_address_validation_

bool yaze::test::ZSCustomOverworldTestSuite::test_address_validation_ = true
private

Definition at line 578 of file zscustomoverworld_test_suite.h.

Referenced by DrawConfiguration(), and RunTests().

◆ test_feature_toggle_

bool yaze::test::ZSCustomOverworldTestSuite::test_feature_toggle_ = true
private

Definition at line 579 of file zscustomoverworld_test_suite.h.

Referenced by DrawConfiguration(), and RunTests().

◆ test_data_integrity_

bool yaze::test::ZSCustomOverworldTestSuite::test_data_integrity_ = true
private

Definition at line 580 of file zscustomoverworld_test_suite.h.

Referenced by DrawConfiguration(), and RunTests().

◆ vanilla_data_

std::map<std::string, std::pair<uint32_t, uint8_t> > yaze::test::ZSCustomOverworldTestSuite::vanilla_data_
private

◆ v2_data_

std::map<std::string, std::pair<uint32_t, uint8_t> > yaze::test::ZSCustomOverworldTestSuite::v2_data_
private

◆ v3_data_

std::map<std::string, std::pair<uint32_t, uint8_t> > yaze::test::ZSCustomOverworldTestSuite::v3_data_
private

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