Extract comprehensive golden data from ROM. More...
#include <test_helpers_commands.h>


Public Member Functions | |
| std::string | GetName () const override |
| Get the command name. | |
| std::string | GetDescription () const |
| std::string | GetUsage () const override |
| Get the command usage string. | |
| absl::Status | ValidateArgs (const resources::ArgumentParser &parser) override |
| Validate command arguments. | |
| absl::Status | Execute (Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override |
| Execute the command business logic. | |
Public Member Functions inherited from yaze::cli::resources::CommandHandler | |
| virtual | ~CommandHandler ()=default |
| absl::Status | Run (const std::vector< std::string > &args, Rom *rom_context, std::string *captured_output=nullptr) |
| Execute the command. | |
| virtual Descriptor | Describe () const |
| Provide metadata for TUI/help summaries. | |
| virtual bool | RequiresRom () const |
| Check if the command requires a loaded ROM. | |
| virtual bool | RequiresLabels () const |
| Check if the command requires ROM labels. | |
| virtual void | SetProjectContext (project::YazeProject *project) |
| Set the YazeProject context. Default implementation does nothing, override if tool needs project info. | |
| virtual void | SetAsarWrapper (core::AsarWrapper *asar_wrapper) |
| Set the AsarWrapper context. Default implementation does nothing, override if tool needs Asar access. | |
| virtual void | SetRomContext (Rom *rom) |
| Set the ROM context for tools that need ROM access. Default implementation stores the ROM pointer for subclass use. | |
Private Member Functions | |
| void | WriteHeader (std::ofstream &out, const std::string &rom_path) |
| void | WriteBasicROMInfo (std::ofstream &out, Rom &rom) |
| void | WriteASMVersionInfo (std::ofstream &out, Rom &rom) |
| void | WriteOverworldMapsData (std::ofstream &out, zelda3::Overworld &overworld) |
| void | WriteTileData (std::ofstream &out, zelda3::Overworld &overworld) |
| void | WriteEntranceData (std::ofstream &out, zelda3::Overworld &overworld) |
| void | WriteFooter (std::ofstream &out) |
Additional Inherited Members | |
Protected Member Functions inherited from yaze::cli::resources::CommandHandler | |
| virtual std::string | GetDefaultFormat () const |
| Get the default output format ("json" or "text") | |
| virtual std::string | GetOutputTitle () const |
| Get the output title for formatting. | |
Protected Attributes inherited from yaze::cli::resources::CommandHandler | |
| Rom * | rom_ = nullptr |
| project::YazeProject * | project_ = nullptr |
| core::AsarWrapper * | asar_wrapper_ = nullptr |
Extract comprehensive golden data from ROM.
Extracts all overworld-related values for golden data testing. Usage: z3ed tools extract-golden –rom=<path> –output=<path>
Definition at line 91 of file test_helpers_commands.h.
|
inlineoverridevirtual |
Get the command name.
Override this to provide a unique identifier for the command. This is used for command registration and lookup.
Implements yaze::cli::resources::CommandHandler.
Definition at line 93 of file test_helpers_commands.h.
|
inline |
Definition at line 94 of file test_helpers_commands.h.
|
inlineoverridevirtual |
Get the command usage string.
Implements yaze::cli::resources::CommandHandler.
Definition at line 97 of file test_helpers_commands.h.
|
inlineoverridevirtual |
Validate command arguments.
Override this to check required arguments and perform custom validation. Called before Execute().
Implements yaze::cli::resources::CommandHandler.
Definition at line 101 of file test_helpers_commands.h.
References yaze::cli::resources::ArgumentParser::RequireArgs().

|
overridevirtual |
Execute the command business logic.
Override this to implement command-specific functionality. The ROM is guaranteed to be loaded and labels initialized.
Implements yaze::cli::resources::CommandHandler.
Definition at line 242 of file test_helpers_commands.cc.
References yaze::cli::resources::OutputFormatter::AddField(), yaze::cli::resources::ArgumentParser::GetString(), yaze::zelda3::Overworld::Load(), yaze::Rom::LoadFromFile(), RETURN_IF_ERROR, WriteASMVersionInfo(), WriteBasicROMInfo(), WriteEntranceData(), WriteFooter(), WriteHeader(), WriteOverworldMapsData(), and WriteTileData().
|
private |
Definition at line 276 of file test_helpers_commands.cc.
Referenced by Execute().
|
private |
Definition at line 292 of file test_helpers_commands.cc.
References yaze::Rom::size(), and yaze::Rom::title().
Referenced by Execute().

|
private |
Definition at line 306 of file test_helpers_commands.cc.
References yaze::Rom::ReadByte().
Referenced by Execute().

|
private |
Definition at line 332 of file test_helpers_commands.cc.
References yaze::zelda3::Overworld::overworld_maps().
Referenced by Execute().

|
private |
Definition at line 355 of file test_helpers_commands.cc.
References yaze::zelda3::Overworld::expanded_tile16(), yaze::zelda3::Overworld::expanded_tile32(), yaze::zelda3::Overworld::tiles16(), and yaze::zelda3::Overworld::tiles32_unique().
Referenced by Execute().

|
private |
Definition at line 377 of file test_helpers_commands.cc.
References yaze::zelda3::Overworld::entrances().
Referenced by Execute().

|
private |
Definition at line 400 of file test_helpers_commands.cc.
Referenced by Execute().