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

Namespaces

namespace  anonymous_namespace{compression_test.cc}
 
namespace  anonymous_namespace{snes_palette_test.cc}
 
namespace  anonymous_namespace{test_manager.cc}
 
namespace  anonymous_namespace{test_recorder.cc}
 
namespace  anonymous_namespace{test_script_parser.cc}
 
namespace  anonymous_namespace{widget_discovery_service.cc}
 
namespace  gui
 
namespace  integration
 

Classes

class  AITilePlacementTest
 Integration tests for AI-controlled tile placement. More...
 
class  ArenaTestSuite
 
class  CanvasAutomationAPITest
 
class  CanvasCoordinateSyncTest
 Tests for canvas coordinate synchronization. More...
 
class  DungeonEditorIntegrationTest
 Integration test framework using real ROM data. More...
 
class  DungeonEditorV2IntegrationTest
 Integration test framework for DungeonEditorV2. More...
 
class  DungeonObjectRenderingE2ETests
 Comprehensive E2E test fixture for dungeon object rendering system. More...
 
class  DungeonObjectRenderingTests
 Tests for ObjectDrawer with realistic dungeon scenarios. More...
 
class  DungeonRoomTest
 
class  E2ERomDependentTest
 Comprehensive End-to-End ROM testing suite. More...
 
class  E2ETestSuite
 End-to-End test suite for comprehensive ROM testing. More...
 
class  EditorIntegrationTest
 Base class for editor integration tests. More...
 
class  EmulatorTestSuite
 Test suite for core emulator components. More...
 
class  GeminiVisionTest
 
class  IntegratedTestSuite
 
class  MessageRomTest
 
class  MockRom
 Enhanced ROM for testing that behaves like a real ROM but with test data. More...
 
class  ObjectParserStructsTest
 
class  ObjectParserTest
 
class  OverworldE2ETest
 Comprehensive End-to-End Overworld Test Suite. More...
 
class  PerformanceTestSuite
 
struct  ResourceStats
 
class  RomDependentTest
 Test fixture for ROM-dependent tests. More...
 
class  RomDependentTestSuite
 
class  RomTest
 
class  SpriteBuilderTest
 
struct  TestConfig
 
class  TestDungeonObjects
 Simplified test framework for dungeon object rendering. More...
 
class  TestEditor
 
class  TestManager
 
class  TestRecorder
 
struct  TestResult
 
struct  TestResults
 
class  TestRomManager
 Utility class for handling test ROM files. More...
 
struct  TestScript
 
class  TestScriptParser
 
struct  TestScriptStep
 
class  TestSuite
 
class  TileSelectorWidgetTest
 
class  UITestSuite
 
class  UnitTestSuite
 
class  WidgetDiscoveryService
 
class  ZSCustomOverworldTestSuite
 ZSCustomOverworld upgrade testing suite. More...
 
class  ZSCustomOverworldUpgradeTest
 ZSCustomOverworld upgrade testing suite. More...
 

Enumerations

enum class  TestStatus {
  kNotRun , kRunning , kPassed , kFailed ,
  kSkipped
}
 
enum class  TestCategory {
  kUnit , kIntegration , kUI , kPerformance ,
  kMemory
}
 
enum class  TestMode {
  kAll , kUnit , kIntegration , kE2E ,
  kRomDependent , kZSCustomOverworld , kCore , kGraphics ,
  kEditor , kDeprecated , kSpecific
}
 

Functions

const char * TestStatusToString (TestStatus status)
 
const char * TestCategoryToString (TestCategory category)
 
ImVec4 GetTestStatusColor (TestStatus status)
 
void RegisterZ3edTestSuites ()
 
void RegisterObjectBrowserTests_SelectObject (DungeonObjectRenderingE2ETests *self)
 Test: Select object from browser.
 
void RegisterObjectBrowserTests_SearchFilter (DungeonObjectRenderingE2ETests *self)
 Test: Search and filter objects.
 
void RegisterObjectPlacementTests_SnapToGrid (DungeonObjectRenderingE2ETests *self)
 Test: Place object with snap to grid.
 
void RegisterObjectPlacementTests_MultipleObjects (DungeonObjectRenderingE2ETests *self)
 Test: Place multiple objects sequentially.
 
void RegisterObjectSelectionTests_MultiSelect (DungeonObjectRenderingE2ETests *self)
 Test: Multi-select objects with Ctrl+drag.
 
void RegisterObjectSelectionTests_MoveObject (DungeonObjectRenderingE2ETests *self)
 Test: Move selected object with drag.
 
void RegisterObjectSelectionTests_DeleteObject (DungeonObjectRenderingE2ETests *self)
 Test: Delete selected object.
 
void RegisterLayerManagementTests_PlaceOnLayers (DungeonObjectRenderingE2ETests *self)
 Test: Place objects on different layers.
 
void RegisterLayerManagementTests_RenderingOrder (DungeonObjectRenderingE2ETests *self)
 Test: Layer rendering order.
 
void RegisterSaveWorkflowTests_RoundTrip (DungeonObjectRenderingE2ETests *self)
 Test: Save and reload room (round-trip)
 
void RegisterSaveWorkflowTests_MultipleTypes (DungeonObjectRenderingE2ETests *self)
 Test: Save with multiple object types.
 
void RegisterRenderingQualityTests_Palettes (DungeonObjectRenderingE2ETests *self)
 Test: Render with different palettes.
 
void RegisterRenderingQualityTests_ComplexRoom (DungeonObjectRenderingE2ETests *self)
 Test: Complex room scenario rendering.
 
 TEST_F (DungeonObjectRenderingE2ETests, RunAllTests)
 
 TEST_F (OverworldE2ETest, ExtractVanillaGoldenData)
 
 TEST_F (OverworldE2ETest, LoadVanillaOverworldData)
 
 TEST_F (OverworldE2ETest, ApplyZSCustomOverworldV3)
 
 TEST_F (OverworldE2ETest, OverworldEditPersistence)
 
 TEST_F (OverworldE2ETest, CoordinateCalculationValidation)
 
 TEST_F (OverworldE2ETest, BeforeAfterValidation)
 
 TEST_F (OverworldE2ETest, RomDependentTestSuiteIntegration)
 
 TEST_F (OverworldE2ETest, PerformanceAndStability)
 
 TEST_F (E2ERomDependentTest, BasicROMLoadSave)
 
 TEST_F (E2ERomDependentTest, ROMDataEditWorkflow)
 
 TEST_F (E2ERomDependentTest, TransactionSystem)
 
 TEST_F (E2ERomDependentTest, CorruptionDetection)
 
 TEST_F (E2ERomDependentTest, LargeScaleEditing)
 
 TEST_F (ZSCustomOverworldUpgradeTest, VanillaBaseline)
 
 TEST_F (ZSCustomOverworldUpgradeTest, VanillaToV2Upgrade)
 
 TEST_F (ZSCustomOverworldUpgradeTest, V2ToV3Upgrade)
 
 TEST_F (ZSCustomOverworldUpgradeTest, VanillaToV3Upgrade)
 
 TEST_F (ZSCustomOverworldUpgradeTest, AddressValidation)
 
 TEST_F (ZSCustomOverworldUpgradeTest, FeatureToggle)
 
 TEST_F (ZSCustomOverworldUpgradeTest, DataIntegrity)
 
 TEST_F (AITilePlacementTest, ParsePlaceTileCommand)
 
 TEST_F (AITilePlacementTest, ParseSelectTileCommand)
 
 TEST_F (AITilePlacementTest, ParseOpenEditorCommand)
 
 TEST_F (AITilePlacementTest, ActionToStringRoundtrip)
 
 TEST_F (AITilePlacementTest, ActionRefinement)
 
 TEST_F (AITilePlacementTest, MultipleCommandsParsing)
 
 TEST_F (AITilePlacementTest, HexAndDecimalParsing)
 
 TEST_F (GeminiVisionTest, BasicImageAnalysis)
 
 TEST_F (GeminiVisionTest, ImageWithSpecificPrompt)
 
 TEST_F (GeminiVisionTest, InvalidImagePath)
 
 TEST_F (GeminiVisionTest, MultipleRequestsSequential)
 
 TEST_F (GeminiVisionTest, RateLimitHandling)
 
 TEST_F (DungeonEditorIntegrationTest, LoadRoomFromRealRom)
 
 TEST_F (DungeonEditorIntegrationTest, LoadMultipleRooms)
 
 TEST_F (DungeonEditorIntegrationTest, DungeonEditorInitialization)
 
 TEST_F (DungeonEditorIntegrationTest, ObjectEncodingRoundTrip)
 
 TEST_F (DungeonEditorIntegrationTest, EncodeType1Object)
 
 TEST_F (DungeonEditorIntegrationTest, EncodeType2Object)
 
 TEST_F (DungeonEditorIntegrationTest, EncodeType3Object)
 
 TEST_F (DungeonEditorIntegrationTest, AddObjectToRoom)
 
 TEST_F (DungeonEditorIntegrationTest, RemoveObjectFromRoom)
 
 TEST_F (DungeonEditorIntegrationTest, UpdateObjectInRoom)
 
 TEST_F (DungeonEditorIntegrationTest, ValidateObjectBounds)
 
 TEST_F (DungeonEditorIntegrationTest, SaveAndReloadRoom)
 
 TEST_F (DungeonEditorIntegrationTest, RenderObjectWithTiles)
 
 TEST_F (DungeonEditorIntegrationTest, ObjectsOnDifferentLayers)
 
 TEST_F (DungeonEditorV2IntegrationTest, EditorInitialization)
 
 TEST_F (DungeonEditorV2IntegrationTest, RomLoadStatus)
 
 TEST_F (DungeonEditorV2IntegrationTest, LoadAllRooms)
 
 TEST_F (DungeonEditorV2IntegrationTest, LoadWithoutRom)
 
 TEST_F (DungeonEditorV2IntegrationTest, LoadSequence)
 
 TEST_F (DungeonEditorV2IntegrationTest, UpdateBeforeLoad)
 
 TEST_F (DungeonEditorV2IntegrationTest, UpdateAfterLoad)
 
 TEST_F (DungeonEditorV2IntegrationTest, SaveWithoutRom)
 
 TEST_F (DungeonEditorV2IntegrationTest, SaveAfterLoad)
 
 TEST_F (DungeonEditorV2IntegrationTest, AddRoomTab)
 
 TEST_F (DungeonEditorV2IntegrationTest, AddMultipleRoomTabs)
 
 TEST_F (DungeonEditorV2IntegrationTest, RoomLoaderDelegation)
 
 TEST_F (DungeonEditorV2IntegrationTest, ComponentsInitializedAfterLoad)
 
 TEST_F (DungeonEditorV2IntegrationTest, SetRomAfterConstruction)
 
 TEST_F (DungeonEditorV2IntegrationTest, SetRomAndLoad)
 
 TEST_F (DungeonEditorV2IntegrationTest, UnimplementedMethods)
 
 TEST_F (DungeonEditorV2IntegrationTest, MultipleUpdateCycles)
 
 TEST_F (DungeonEditorV2IntegrationTest, InvalidRoomId)
 
 TEST_F (DungeonEditorV2IntegrationTest, NegativeRoomId)
 
 TEST_F (DungeonEditorV2IntegrationTest, LoadTwice)
 
 TEST_F (DungeonObjectRenderingTests, BasicObjectDrawing)
 
 TEST_F (DungeonObjectRenderingTests, MultiLayerRendering)
 
 TEST_F (DungeonObjectRenderingTests, EmptyObjectList)
 
 TEST_F (DungeonObjectRenderingTests, LargeObjectSet)
 
 TEST_F (DungeonObjectRenderingTests, BoundaryObjects)
 
 TEST_F (DungeonObjectRenderingTests, VariousObjectTypes)
 
 TEST_F (DungeonObjectRenderingTests, ErrorHandling)
 
 TEST_F (DungeonRoomTest, SingleRoomLoadOk)
 
 TEST_F (MessageRomTest, ParseSingleMessage_CommandParsing)
 
 TEST_F (MessageRomTest, ParseSingleMessage_BasicAscii)
 
 TEST_F (MessageRomTest, FindMatchingCharacter_Success)
 
 TEST_F (MessageRomTest, FindMatchingCharacter_Failure)
 
 TEST_F (MessageRomTest, FindDictionaryEntry_Success)
 
 TEST_F (MessageRomTest, FindDictionaryEntry_Failure)
 
 TEST_F (MessageRomTest, ParseMessageToData_Basic)
 
 TEST_F (MessageRomTest, ReplaceAllDictionaryWords_Success)
 
 TEST_F (MessageRomTest, ReplaceAllDictionaryWords_NoMatch)
 
 TEST_F (MessageRomTest, ParseTextDataByte_Success)
 
 TEST_F (MessageRomTest, ParseTextDataByte_Failure)
 
 TEST_F (MessageRomTest, ParseSingleMessage_SpecialCharacters)
 
 TEST_F (MessageRomTest, ParseSingleMessage_DictionaryReference)
 
 TEST_F (MessageRomTest, ParseSingleMessage_InvalidTerminator)
 
 TEST_F (MessageRomTest, ParseSingleMessage_EmptyData)
 
 TEST_F (MessageRomTest, OptimizeMessageForDictionary_Basic)
 
 TEST_F (MessageRomTest, SetMessage_Success)
 
 TEST_F (MessageRomTest, FindMatchingElement_CommandWithArgument)
 
 TEST_F (MessageRomTest, FindMatchingElement_InvalidCommand)
 
 TEST_F (MessageRomTest, BuildDictionaryEntries_CorrectSize)
 
 TEST_F (MessageRomTest, ParseMessageData_CommandWithArgument_NoExtraCharacters)
 
 TEST_F (MessageRomTest, ParseMessageData_MultipleCommandsWithArguments)
 
 TEST_F (MessageRomTest, ParseMessageData_CommandWithoutArgument)
 
 TEST_F (MessageRomTest, ParseMessageData_MixedCommands)
 
int RunIntegrationTest ()
 
 MATCHER_P (StatusIs, status, "")
 
template<typename T >
::testing::AssertionResult IsOkAndHolds (const absl::StatusOr< T > &status_or, const T &value)
 
 MATCHER_P (IsOkAndHolds, value, "")
 
 MATCHER_P (StatusIsWithMessage, message, "")
 
 MATCHER_P (StatusIsWithCode, code, "")
 
template<typename T , typename Matcher >
::testing::AssertionResult IsOkAndMatches (const absl::StatusOr< T > &status_or, const Matcher &matcher)
 
template<typename T >
::testing::AssertionResult StatusOrEqual (const absl::StatusOr< T > &a, const absl::StatusOr< T > &b)
 
 TEST (HexTest, HexByte)
 
 TEST (HexTest, HexWord)
 
 TEST (HexTest, HexLong)
 
 TEST (HexTest, HexLongLong)
 
 TEST (LC_LZ2_CompressionTest, TrivialRepeatedBytes)
 
 TEST (LC_LZ2_CompressionTest, RepeatedBytesBetweenUncompressable)
 
 TEST (LC_LZ2_CompressionTest, RepeatedBytesBeforeUncompressable)
 
 TEST (LC_LZ2_CompressionTest, RepeatedBytesAfterUncompressable)
 
 TEST (LC_LZ2_CompressionTest, RepeatedBytesAfterUncompressableRepeated)
 
 TEST (LC_LZ2_CompressionTest, RepeatedBytesBeforeUncompressableRepeated)
 
 TEST (LC_LZ2_CompressionTest, NewDecompressionPieceOk)
 
 TEST (LC_LZ2_CompressionTest, CompressionSingleSet)
 
 TEST (LC_LZ2_CompressionTest, CompressionSingleWord)
 
 TEST (LC_LZ2_CompressionTest, CompressionSingleIncrement)
 
 TEST (LC_LZ2_CompressionTest, CompressionSingleCopy)
 
 TEST (LC_LZ2_CompressionTest, CompressionSingleOverflowIncrement)
 
 TEST (HandleDirectCopyTest, NotDirectCopyWithAccumulatedBytes)
 
 TEST (HandleDirectCopyTest, NotDirectCopyWithoutAccumulatedBytes)
 
 TEST (HandleDirectCopyTest, AccumulateBytesWithoutMax)
 
 TEST (CheckIncByteV3Test, IncreasingSequence)
 
 TEST (CheckIncByteV3Test, IncreasingSequenceSurroundedByIdenticalBytes)
 
 TEST (CheckIncByteV3Test, NotAnIncreasingSequence)
 
 TEST (LC_LZ2_CompressionTest, DecompressionValidCommand)
 
 TEST (LC_LZ2_CompressionTest, DecompressionMixingCommand)
 
 TEST (SnesColorTest, DefaultConstructor)
 
 TEST (SnesColorTest, RGBConstructor)
 
 TEST (SnesColorTest, SNESConstructor)
 
 TEST (SnesColorTest, ConvertRgbToSnes)
 
 TEST (SnesColorTest, ConvertSnestoRGB)
 
 TEST (SnesColorTest, ConvertSnesToRGB_Binary)
 
 TEST (SnesColorTest, Extraction)
 
 TEST (SnesColorTest, Convert)
 
 TEST (SnesPaletteTest, DefaultConstructor)
 
 TEST (SnesPaletteTest, AddColor)
 
 TEST (SnesPaletteTest, AddMultipleColors)
 
 TEST (SnesPaletteTest, UpdateColor)
 
 TEST (SnesPaletteTest, SubPalette)
 
 TEST (SnesPaletteTest, VectorConstructor)
 
 TEST (SnesPaletteTest, Clear)
 
 TEST (SnesPaletteTest, Iterator)
 
 TEST (SnesPaletteTest, OperatorAccess)
 
 TEST (SnesTileTest, UnpackBppTile)
 
 TEST (SnesTileTest, PackBppTile)
 
 TEST (SnesTileTest, ConvertBpp)
 
 TEST (SnesTileTest, TileInfo)
 
 TEST (SnesTileTest, TileInfoToWord)
 
 TEST (SnesTileTest, WordToTileInfo)
 
 TEST (SnesTileTest, Tile32)
 
 TEST (SnesTileTest, Tile16)
 
 TEST_F (CanvasAutomationAPITest, TileToCanvas_BasicConversion)
 
 TEST_F (CanvasAutomationAPITest, TileToCanvas_WithZoom)
 
 TEST_F (CanvasAutomationAPITest, CanvasToTile_BasicConversion)
 
 TEST_F (CanvasAutomationAPITest, CanvasToTile_WithZoom)
 
 TEST_F (CanvasAutomationAPITest, CoordinateRoundTrip)
 
 TEST_F (CanvasAutomationAPITest, IsInBounds_ValidCoordinates)
 
 TEST_F (CanvasAutomationAPITest, IsInBounds_InvalidCoordinates)
 
 TEST_F (CanvasAutomationAPITest, SetTileAt_WithCallback)
 
 TEST_F (CanvasAutomationAPITest, SetTileAt_OutOfBounds)
 
 TEST_F (CanvasAutomationAPITest, GetTileAt_WithCallback)
 
 TEST_F (CanvasAutomationAPITest, GetTileAt_OutOfBounds)
 
 TEST_F (CanvasAutomationAPITest, SetTiles_BatchOperation)
 
 TEST_F (CanvasAutomationAPITest, SelectTile)
 
 TEST_F (CanvasAutomationAPITest, SelectTileRect)
 
 TEST_F (CanvasAutomationAPITest, SelectTileRect_SwappedCoordinates)
 
 TEST_F (CanvasAutomationAPITest, ClearSelection)
 
 TEST_F (CanvasAutomationAPITest, SelectTile_OutOfBounds)
 
 TEST_F (CanvasAutomationAPITest, SetZoom_ValidRange)
 
 TEST_F (CanvasAutomationAPITest, SetZoom_Clamping)
 
 TEST_F (CanvasAutomationAPITest, ScrollToTile_ValidTile)
 
 TEST_F (CanvasAutomationAPITest, ScrollToTile_OutOfBounds)
 
 TEST_F (CanvasAutomationAPITest, CenterOn_ValidTile)
 
 TEST_F (CanvasAutomationAPITest, CenterOn_OutOfBounds)
 
 TEST_F (CanvasAutomationAPITest, GetDimensions)
 
 TEST_F (CanvasAutomationAPITest, GetDimensions_WithZoom)
 
 TEST_F (CanvasAutomationAPITest, GetVisibleRegion)
 
 TEST_F (CanvasAutomationAPITest, IsTileVisible_AtOrigin)
 
 TEST_F (CanvasAutomationAPITest, IsTileVisible_OutOfBounds)
 
 TEST_F (CanvasAutomationAPITest, CompleteWorkflow)
 
 TEST_F (CanvasAutomationAPITest, DifferentGridSizes)
 
 TEST_F (CanvasAutomationAPITest, MultipleZoomLevels)
 
 TEST_F (CanvasCoordinateSyncTest, HoverMousePos_InitialState)
 
 TEST_F (CanvasCoordinateSyncTest, HoverMousePos_IndependentFromDrawnPos)
 
 TEST_F (CanvasCoordinateSyncTest, CoordinateSpace_WorldNotScreen)
 
 TEST_F (CanvasCoordinateSyncTest, MapCalculation_SmallMaps)
 
 TEST_F (CanvasCoordinateSyncTest, MapCalculation_LargeMaps)
 
 TEST_F (CanvasCoordinateSyncTest, HoverPosition_ScaleInvariant)
 
 TEST_F (CanvasCoordinateSyncTest, OverworldMapHighlight_UsesHoverNotDrawn)
 
 TEST_F (CanvasCoordinateSyncTest, OverworldMapIndex_From8x8Grid)
 
 TEST_F (CanvasCoordinateSyncTest, MapBoundaries_512x512)
 
 TEST_F (CanvasCoordinateSyncTest, MapBoundaries_1024x1024)
 
 TEST_F (TileSelectorWidgetTest, Construction)
 
 TEST_F (TileSelectorWidgetTest, ConstructionWithConfig)
 
 TEST_F (TileSelectorWidgetTest, AttachCanvas)
 
 TEST_F (TileSelectorWidgetTest, SetTileCount)
 
 TEST_F (TileSelectorWidgetTest, SetSelectedTile)
 
 TEST_F (TileSelectorWidgetTest, TileOrigin)
 
 TEST_F (TileSelectorWidgetTest, RenderWithoutAtlas)
 
 TEST_F (TileSelectorWidgetTest, ProgrammaticSelection)
 
 TEST_F (TileSelectorWidgetTest, ScrollToTile)
 
 TEST_F (TileSelectorWidgetTest, DifferentConfigs)
 
 TEST_F (RomTest, Uninitialized)
 
 TEST_F (RomTest, LoadFromFile)
 
 TEST_F (RomTest, LoadFromFileInvalid)
 
 TEST_F (RomTest, LoadFromFileEmpty)
 
 TEST_F (RomTest, ReadByteOk)
 
 TEST_F (RomTest, ReadByteInvalid)
 
 TEST_F (RomTest, ReadWordOk)
 
 TEST_F (RomTest, ReadWordInvalid)
 
 TEST_F (RomTest, ReadLongOk)
 
 TEST_F (RomTest, ReadBytesOk)
 
 TEST_F (RomTest, ReadBytesOutOfRange)
 
 TEST_F (RomTest, WriteByteOk)
 
 TEST_F (RomTest, WriteWordOk)
 
 TEST_F (RomTest, WriteLongOk)
 
 TEST_F (RomTest, WriteTransactionSuccess)
 
 TEST_F (RomTest, WriteTransactionFailure)
 
 TEST_F (RomTest, ReadTransactionSuccess)
 
 TEST_F (RomTest, ReadTransactionFailure)
 
 TEST_F (RomTest, SaveTruncatesExistingFile)
 
 TEST_F (RomTest, TransactionRollbackRestoresOriginals)
 
 TEST (DungeonToolsetTest, BasicFunctionality)
 Unit tests for individual dungeon components.
 
 TEST (DungeonToolsetTest, CallbackFunctionality)
 
 TEST (DungeonUsageTrackerTest, BasicFunctionality)
 
 TEST (ComponentArchitectureTest, FileSizeReduction)
 
 TEST_F (ObjectParserStructsTest, ObjectRoutineInfoDefaultConstructor)
 
 TEST_F (ObjectParserStructsTest, ObjectSubtypeInfoDefaultConstructor)
 
 TEST_F (ObjectParserStructsTest, ObjectSizeInfoDefaultConstructor)
 
 TEST_F (ObjectParserStructsTest, ObjectRoutineInfoAssignment)
 
 TEST_F (ObjectParserStructsTest, ObjectSubtypeInfoAssignment)
 
 TEST_F (ObjectParserStructsTest, ObjectSizeInfoAssignment)
 
 TEST_F (ObjectParserTest, ParseSubtype1Object)
 
 TEST_F (ObjectParserTest, ParseSubtype2Object)
 
 TEST_F (ObjectParserTest, ParseSubtype3Object)
 
 TEST_F (ObjectParserTest, GetObjectSubtype)
 
 TEST_F (ObjectParserTest, ParseObjectSize)
 
 TEST_F (ObjectParserTest, ParseObjectRoutine)
 
 TEST_F (ObjectParserTest, InvalidObjectId)
 
 TEST_F (ObjectParserTest, NullRom)
 
 TEST_F (SpriteBuilderTest, BuildSpritePropertiesOk)
 
TestConfig ParseArguments (int argc, char *argv[])
 
void SetupTestEnvironment (const TestConfig &config)
 
void ConfigureTestFilters (const TestConfig &config)
 

Enumeration Type Documentation

◆ TestStatus

enum class yaze::test::TestStatus
strong
Enumerator
kNotRun 
kRunning 
kPassed 
kFailed 
kSkipped 

Definition at line 43 of file test_manager.h.

◆ TestCategory

enum class yaze::test::TestCategory
strong
Enumerator
kUnit 
kIntegration 
kUI 
kPerformance 
kMemory 

Definition at line 46 of file test_manager.h.

◆ TestMode

enum class yaze::test::TestMode
strong
Enumerator
kAll 
kUnit 
kIntegration 
kE2E 
kRomDependent 
kZSCustomOverworld 
kCore 
kGraphics 
kEditor 
kDeprecated 
kSpecific 

Definition at line 36 of file yaze_test.cc.

Function Documentation

◆ TestStatusToString()

const char * yaze::test::TestStatusToString ( TestStatus  status)

Definition at line 64 of file test_manager.cc.

References kFailed, kNotRun, kPassed, kRunning, and kSkipped.

◆ TestCategoryToString()

const char * yaze::test::TestCategoryToString ( TestCategory  category)

Definition at line 80 of file test_manager.cc.

References kIntegration, kMemory, kPerformance, kUI, and kUnit.

◆ GetTestStatusColor()

ImVec4 yaze::test::GetTestStatusColor ( TestStatus  status)

Definition at line 96 of file test_manager.cc.

References kFailed, kNotRun, kPassed, kRunning, and kSkipped.

Referenced by yaze::test::TestManager::DrawTestDashboard().

◆ RegisterZ3edTestSuites()

void yaze::test::RegisterZ3edTestSuites ( )

Definition at line 9 of file z3ed_test_suite.cc.

References yaze::test::TestManager::Get(), LOG_INFO, and yaze::test::TestManager::RegisterTestSuite().

Referenced by yaze::editor::EditorManager::InitializeTestSuites().

Here is the call graph for this function:

◆ RegisterObjectBrowserTests_SelectObject()

void yaze::test::RegisterObjectBrowserTests_SelectObject ( DungeonObjectRenderingE2ETests self)

Test: Select object from browser.

Validates:

  • Object can be selected by clicking
  • Preview updates when object selected
  • Object details window shows correct info

Definition at line 185 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterObjectBrowserTests_SearchFilter()

void yaze::test::RegisterObjectBrowserTests_SearchFilter ( DungeonObjectRenderingE2ETests self)

Test: Search and filter objects.

Validates:

  • Search box filters object list
  • Filtering by ID works
  • Clearing search restores full list

Definition at line 226 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterObjectPlacementTests_SnapToGrid()

void yaze::test::RegisterObjectPlacementTests_SnapToGrid ( DungeonObjectRenderingE2ETests self)

Test: Place object with snap to grid.

Validates:

  • Snap to grid option works
  • Object positions align to grid
  • Grid size can be changed

Definition at line 321 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterObjectPlacementTests_MultipleObjects()

void yaze::test::RegisterObjectPlacementTests_MultipleObjects ( DungeonObjectRenderingE2ETests self)

Test: Place multiple objects sequentially.

Validates:

  • Multiple objects can be placed
  • Each placement is independent
  • All placed objects render correctly

Definition at line 364 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterObjectSelectionTests_MultiSelect()

void yaze::test::RegisterObjectSelectionTests_MultiSelect ( DungeonObjectRenderingE2ETests self)

Test: Multi-select objects with Ctrl+drag.

Validates:

  • Ctrl+drag creates selection box
  • All objects in box are selected
  • Selection count is correct

Definition at line 451 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterObjectSelectionTests_MoveObject()

void yaze::test::RegisterObjectSelectionTests_MoveObject ( DungeonObjectRenderingE2ETests self)

Test: Move selected object with drag.

Validates:

  • Selected object can be dragged
  • Object position updates during drag
  • Final position is correct

Definition at line 498 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterObjectSelectionTests_DeleteObject()

void yaze::test::RegisterObjectSelectionTests_DeleteObject ( DungeonObjectRenderingE2ETests self)

Test: Delete selected object.

Validates:

  • Delete key removes selected object
  • Object no longer in room list
  • Canvas no longer renders object

Definition at line 543 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterLayerManagementTests_PlaceOnLayers()

void yaze::test::RegisterLayerManagementTests_PlaceOnLayers ( DungeonObjectRenderingE2ETests self)

Test: Place objects on different layers.

Validates:

  • Active layer can be changed
  • Objects placed on correct layer
  • Layer indicator shows current layer

Definition at line 627 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterLayerManagementTests_RenderingOrder()

void yaze::test::RegisterLayerManagementTests_RenderingOrder ( DungeonObjectRenderingE2ETests self)

Test: Layer rendering order.

Validates:

  • Layers render in correct order (BG1 < BG2 < BG3)
  • Overlapping objects render correctly
  • Visual inspection of layer order

Definition at line 687 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterSaveWorkflowTests_RoundTrip()

void yaze::test::RegisterSaveWorkflowTests_RoundTrip ( DungeonObjectRenderingE2ETests self)

Test: Save and reload room (round-trip)

Validates:

  • Objects persist after save/reload
  • Object properties are preserved
  • No data corruption

Definition at line 779 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterSaveWorkflowTests_MultipleTypes()

void yaze::test::RegisterSaveWorkflowTests_MultipleTypes ( DungeonObjectRenderingE2ETests self)

Test: Save with multiple object types.

Validates:

  • Type1, Type2, Type3 objects all save correctly
  • Encoding is correct for each type
  • All objects reload correctly

Definition at line 833 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterRenderingQualityTests_Palettes()

void yaze::test::RegisterRenderingQualityTests_Palettes ( DungeonObjectRenderingE2ETests self)

Test: Render with different palettes.

Validates:

  • Palette switching works
  • Objects render with correct colors
  • No palette-related rendering errors

Definition at line 944 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ RegisterRenderingQualityTests_ComplexRoom()

void yaze::test::RegisterRenderingQualityTests_ComplexRoom ( DungeonObjectRenderingE2ETests self)

Test: Complex room scenario rendering.

Validates:

  • Many objects render correctly
  • Performance is acceptable
  • No rendering artifacts

Definition at line 988 of file dungeon_object_rendering_e2e_tests.cc.

References yaze::test::DungeonObjectRenderingE2ETests::dungeon_editor_, and yaze::test::DungeonObjectRenderingE2ETests::engine_.

Referenced by yaze::test::DungeonObjectRenderingE2ETests::RegisterAllTests().

◆ TEST_F() [1/185]

yaze::test::TEST_F ( DungeonObjectRenderingE2ETests  ,
RunAllTests   
)

Definition at line 1126 of file dungeon_object_rendering_e2e_tests.cc.

◆ TEST_F() [2/185]

yaze::test::TEST_F ( OverworldE2ETest  ,
ExtractVanillaGoldenData   
)

Definition at line 101 of file overworld_e2e_test.cc.

References ASSERT_OK.

◆ TEST_F() [3/185]

◆ TEST_F() [4/185]

yaze::test::TEST_F ( OverworldE2ETest  ,
ApplyZSCustomOverworldV3   
)

◆ TEST_F() [5/185]

◆ TEST_F() [6/185]

yaze::test::TEST_F ( OverworldE2ETest  ,
CoordinateCalculationValidation   
)

Definition at line 257 of file overworld_e2e_test.cc.

References ASSERT_OK, yaze::zelda3::Overworld::entrances(), yaze::zelda3::Overworld::holes(), and yaze::zelda3::Overworld::Load().

Here is the call graph for this function:

◆ TEST_F() [7/185]

yaze::test::TEST_F ( OverworldE2ETest  ,
BeforeAfterValidation   
)

Definition at line 309 of file overworld_e2e_test.cc.

References ASSERT_OK.

◆ TEST_F() [8/185]

◆ TEST_F() [9/185]

yaze::test::TEST_F ( OverworldE2ETest  ,
PerformanceAndStability   
)

◆ TEST_F() [10/185]

yaze::test::TEST_F ( E2ERomDependentTest  ,
BasicROMLoadSave   
)

Definition at line 130 of file e2e_rom_test.cc.

References ASSERT_OK.

◆ TEST_F() [11/185]

yaze::test::TEST_F ( E2ERomDependentTest  ,
ROMDataEditWorkflow   
)

Definition at line 142 of file e2e_rom_test.cc.

References ASSERT_OK.

◆ TEST_F() [12/185]

yaze::test::TEST_F ( E2ERomDependentTest  ,
TransactionSystem   
)

Definition at line 179 of file e2e_rom_test.cc.

References ASSERT_OK.

◆ TEST_F() [13/185]

yaze::test::TEST_F ( E2ERomDependentTest  ,
CorruptionDetection   
)

Definition at line 218 of file e2e_rom_test.cc.

References ASSERT_OK.

◆ TEST_F() [14/185]

yaze::test::TEST_F ( E2ERomDependentTest  ,
LargeScaleEditing   
)

Definition at line 243 of file e2e_rom_test.cc.

References ASSERT_OK.

◆ TEST_F() [15/185]

yaze::test::TEST_F ( ZSCustomOverworldUpgradeTest  ,
VanillaBaseline   
)

Definition at line 167 of file zscustomoverworld_upgrade_test.cc.

References ASSERT_OK.

◆ TEST_F() [16/185]

yaze::test::TEST_F ( ZSCustomOverworldUpgradeTest  ,
VanillaToV2Upgrade   
)

Definition at line 181 of file zscustomoverworld_upgrade_test.cc.

References ASSERT_OK.

◆ TEST_F() [17/185]

yaze::test::TEST_F ( ZSCustomOverworldUpgradeTest  ,
V2ToV3Upgrade   
)

Definition at line 206 of file zscustomoverworld_upgrade_test.cc.

References ASSERT_OK.

◆ TEST_F() [18/185]

yaze::test::TEST_F ( ZSCustomOverworldUpgradeTest  ,
VanillaToV3Upgrade   
)

Definition at line 234 of file zscustomoverworld_upgrade_test.cc.

References ASSERT_OK.

◆ TEST_F() [19/185]

yaze::test::TEST_F ( ZSCustomOverworldUpgradeTest  ,
AddressValidation   
)

Definition at line 259 of file zscustomoverworld_upgrade_test.cc.

References ASSERT_OK.

◆ TEST_F() [20/185]

yaze::test::TEST_F ( ZSCustomOverworldUpgradeTest  ,
FeatureToggle   
)

Definition at line 275 of file zscustomoverworld_upgrade_test.cc.

References ASSERT_OK.

◆ TEST_F() [21/185]

yaze::test::TEST_F ( ZSCustomOverworldUpgradeTest  ,
DataIntegrity   
)

Definition at line 330 of file zscustomoverworld_upgrade_test.cc.

References ASSERT_OK.

◆ TEST_F() [22/185]

yaze::test::TEST_F ( AITilePlacementTest  ,
ParsePlaceTileCommand   
)

Definition at line 33 of file test_ai_tile_placement.cc.

◆ TEST_F() [23/185]

yaze::test::TEST_F ( AITilePlacementTest  ,
ParseSelectTileCommand   
)

Definition at line 57 of file test_ai_tile_placement.cc.

◆ TEST_F() [24/185]

yaze::test::TEST_F ( AITilePlacementTest  ,
ParseOpenEditorCommand   
)

Definition at line 68 of file test_ai_tile_placement.cc.

◆ TEST_F() [25/185]

yaze::test::TEST_F ( AITilePlacementTest  ,
ActionToStringRoundtrip   
)

Definition at line 79 of file test_ai_tile_placement.cc.

◆ TEST_F() [26/185]

yaze::test::TEST_F ( AITilePlacementTest  ,
ActionRefinement   
)

Definition at line 157 of file test_ai_tile_placement.cc.

◆ TEST_F() [27/185]

yaze::test::TEST_F ( AITilePlacementTest  ,
MultipleCommandsParsing   
)

Definition at line 174 of file test_ai_tile_placement.cc.

◆ TEST_F() [28/185]

yaze::test::TEST_F ( AITilePlacementTest  ,
HexAndDecimalParsing   
)

Definition at line 194 of file test_ai_tile_placement.cc.

◆ TEST_F() [29/185]

yaze::test::TEST_F ( GeminiVisionTest  ,
BasicImageAnalysis   
)

◆ TEST_F() [30/185]

yaze::test::TEST_F ( GeminiVisionTest  ,
ImageWithSpecificPrompt   
)

◆ TEST_F() [31/185]

yaze::test::TEST_F ( GeminiVisionTest  ,
InvalidImagePath   
)

◆ TEST_F() [32/185]

yaze::test::TEST_F ( GeminiVisionTest  ,
MultipleRequestsSequential   
)

◆ TEST_F() [33/185]

yaze::test::TEST_F ( GeminiVisionTest  ,
RateLimitHandling   
)

◆ TEST_F() [34/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
LoadRoomFromRealRom   
)

Definition at line 15 of file dungeon_editor_test.cc.

References yaze::zelda3::LoadRoomFromRom().

Here is the call graph for this function:

◆ TEST_F() [35/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
LoadMultipleRooms   
)

Definition at line 22 of file dungeon_editor_test.cc.

References yaze::zelda3::LoadRoomFromRom().

Here is the call graph for this function:

◆ TEST_F() [36/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
DungeonEditorInitialization   
)

Definition at line 32 of file dungeon_editor_test.cc.

◆ TEST_F() [37/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
ObjectEncodingRoundTrip   
)

Definition at line 45 of file dungeon_editor_test.cc.

References yaze::zelda3::LoadRoomFromRom().

Here is the call graph for this function:

◆ TEST_F() [38/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
EncodeType1Object   
)

Definition at line 54 of file dungeon_editor_test.cc.

References yaze::zelda3::RoomObject::EncodeObjectToBytes().

Here is the call graph for this function:

◆ TEST_F() [39/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
EncodeType2Object   
)

Definition at line 65 of file dungeon_editor_test.cc.

References yaze::zelda3::RoomObject::EncodeObjectToBytes().

Here is the call graph for this function:

◆ TEST_F() [40/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
EncodeType3Object   
)

Definition at line 74 of file dungeon_editor_test.cc.

References yaze::zelda3::RoomObject::EncodeObjectToBytes().

Here is the call graph for this function:

◆ TEST_F() [41/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
AddObjectToRoom   
)

Definition at line 88 of file dungeon_editor_test.cc.

References yaze::zelda3::LoadRoomFromRom(), and yaze::zelda3::RoomObject::set_rom().

Here is the call graph for this function:

◆ TEST_F() [42/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
RemoveObjectFromRoom   
)

Definition at line 103 of file dungeon_editor_test.cc.

References yaze::zelda3::LoadRoomFromRom().

Here is the call graph for this function:

◆ TEST_F() [43/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
UpdateObjectInRoom   
)

Definition at line 117 of file dungeon_editor_test.cc.

References yaze::zelda3::LoadRoomFromRom(), yaze::zelda3::RoomObject::x_, and yaze::zelda3::RoomObject::y_.

Here is the call graph for this function:

◆ TEST_F() [44/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
ValidateObjectBounds   
)

Definition at line 139 of file dungeon_editor_test.cc.

References yaze::zelda3::LoadRoomFromRom().

Here is the call graph for this function:

◆ TEST_F() [45/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
SaveAndReloadRoom   
)

Definition at line 164 of file dungeon_editor_test.cc.

References yaze::zelda3::LoadRoomFromRom().

Here is the call graph for this function:

◆ TEST_F() [46/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
RenderObjectWithTiles   
)

Definition at line 186 of file dungeon_editor_test.cc.

References yaze::zelda3::LoadRoomFromRom().

Here is the call graph for this function:

◆ TEST_F() [47/185]

yaze::test::TEST_F ( DungeonEditorIntegrationTest  ,
ObjectsOnDifferentLayers   
)

Definition at line 204 of file dungeon_editor_test.cc.

References yaze::zelda3::LoadRoomFromRom().

Here is the call graph for this function:

◆ TEST_F() [48/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
EditorInitialization   
)

Definition at line 10 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [49/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
RomLoadStatus   
)

Definition at line 16 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [50/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
LoadAllRooms   
)

Definition at line 27 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [51/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
LoadWithoutRom   
)

Definition at line 34 of file dungeon_editor_v2_test.cc.

References yaze::editor::DungeonEditorV2::Load().

Here is the call graph for this function:

◆ TEST_F() [52/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
LoadSequence   
)

Definition at line 42 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [53/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
UpdateBeforeLoad   
)

Definition at line 57 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [54/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
UpdateAfterLoad   
)

Definition at line 63 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [55/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
SaveWithoutRom   
)

Definition at line 76 of file dungeon_editor_v2_test.cc.

References yaze::editor::DungeonEditorV2::Save().

Here is the call graph for this function:

◆ TEST_F() [56/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
SaveAfterLoad   
)

Definition at line 84 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [57/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
AddRoomTab   
)

Definition at line 98 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [58/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
AddMultipleRoomTabs   
)

Definition at line 110 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [59/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
RoomLoaderDelegation   
)

Definition at line 127 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [60/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
ComponentsInitializedAfterLoad   
)

Definition at line 136 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [61/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
SetRomAfterConstruction   
)

◆ TEST_F() [62/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
SetRomAndLoad   
)

◆ TEST_F() [63/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
UnimplementedMethods   
)

Definition at line 177 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [64/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
MultipleUpdateCycles   
)

Definition at line 197 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [65/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
InvalidRoomId   
)

Definition at line 212 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [66/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
NegativeRoomId   
)

Definition at line 224 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [67/185]

yaze::test::TEST_F ( DungeonEditorV2IntegrationTest  ,
LoadTwice   
)

Definition at line 236 of file dungeon_editor_v2_test.cc.

◆ TEST_F() [68/185]

yaze::test::TEST_F ( DungeonObjectRenderingTests  ,
BasicObjectDrawing   
)

Definition at line 84 of file dungeon_object_rendering_tests.cc.

◆ TEST_F() [69/185]

yaze::test::TEST_F ( DungeonObjectRenderingTests  ,
MultiLayerRendering   
)

Definition at line 102 of file dungeon_object_rendering_tests.cc.

◆ TEST_F() [70/185]

yaze::test::TEST_F ( DungeonObjectRenderingTests  ,
EmptyObjectList   
)

Definition at line 120 of file dungeon_object_rendering_tests.cc.

◆ TEST_F() [71/185]

yaze::test::TEST_F ( DungeonObjectRenderingTests  ,
LargeObjectSet   
)

Definition at line 132 of file dungeon_object_rendering_tests.cc.

◆ TEST_F() [72/185]

yaze::test::TEST_F ( DungeonObjectRenderingTests  ,
BoundaryObjects   
)

Definition at line 157 of file dungeon_object_rendering_tests.cc.

◆ TEST_F() [73/185]

yaze::test::TEST_F ( DungeonObjectRenderingTests  ,
VariousObjectTypes   
)

Definition at line 173 of file dungeon_object_rendering_tests.cc.

◆ TEST_F() [74/185]

yaze::test::TEST_F ( DungeonObjectRenderingTests  ,
ErrorHandling   
)

Definition at line 200 of file dungeon_object_rendering_tests.cc.

References yaze::zelda3::ObjectDrawer::DrawObjectList().

Here is the call graph for this function:

◆ TEST_F() [75/185]

yaze::test::TEST_F ( DungeonRoomTest  ,
SingleRoomLoadOk   
)

Definition at line 27 of file dungeon_room_test.cc.

References yaze::zelda3::LoadRoomFromRom().

Here is the call graph for this function:

◆ TEST_F() [76/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseSingleMessage_CommandParsing   
)

Definition at line 35 of file message_test.cc.

References yaze::editor::ParseSingleMessage().

Here is the call graph for this function:

◆ TEST_F() [77/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseSingleMessage_BasicAscii   
)

Definition at line 48 of file message_test.cc.

References yaze::editor::ParseMessageData(), and yaze::editor::ParseSingleMessage().

Here is the call graph for this function:

◆ TEST_F() [78/185]

yaze::test::TEST_F ( MessageRomTest  ,
FindMatchingCharacter_Success   
)

Definition at line 64 of file message_test.cc.

References yaze::editor::FindMatchingCharacter().

Here is the call graph for this function:

◆ TEST_F() [79/185]

yaze::test::TEST_F ( MessageRomTest  ,
FindMatchingCharacter_Failure   
)

Definition at line 71 of file message_test.cc.

References yaze::editor::FindMatchingCharacter().

Here is the call graph for this function:

◆ TEST_F() [80/185]

yaze::test::TEST_F ( MessageRomTest  ,
FindDictionaryEntry_Success   
)

Definition at line 76 of file message_test.cc.

References yaze::editor::FindDictionaryEntry().

Here is the call graph for this function:

◆ TEST_F() [81/185]

yaze::test::TEST_F ( MessageRomTest  ,
FindDictionaryEntry_Failure   
)

Definition at line 81 of file message_test.cc.

References yaze::editor::FindDictionaryEntry().

Here is the call graph for this function:

◆ TEST_F() [82/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseMessageToData_Basic   
)

Definition at line 86 of file message_test.cc.

References yaze::editor::ParseMessageToData().

Here is the call graph for this function:

◆ TEST_F() [83/185]

yaze::test::TEST_F ( MessageRomTest  ,
ReplaceAllDictionaryWords_Success   
)

Definition at line 93 of file message_test.cc.

References yaze::editor::ReplaceAllDictionaryWords().

Here is the call graph for this function:

◆ TEST_F() [84/185]

yaze::test::TEST_F ( MessageRomTest  ,
ReplaceAllDictionaryWords_NoMatch   
)

Definition at line 102 of file message_test.cc.

References yaze::editor::ReplaceAllDictionaryWords().

Here is the call graph for this function:

◆ TEST_F() [85/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseTextDataByte_Success   
)

Definition at line 110 of file message_test.cc.

References yaze::editor::ParseTextDataByte().

Here is the call graph for this function:

◆ TEST_F() [86/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseTextDataByte_Failure   
)

Definition at line 116 of file message_test.cc.

References yaze::editor::ParseTextDataByte().

Here is the call graph for this function:

◆ TEST_F() [87/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseSingleMessage_SpecialCharacters   
)

Definition at line 120 of file message_test.cc.

References yaze::editor::ParseSingleMessage().

Here is the call graph for this function:

◆ TEST_F() [88/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseSingleMessage_DictionaryReference   
)

Definition at line 132 of file message_test.cc.

References yaze::editor::ParseSingleMessage().

Here is the call graph for this function:

◆ TEST_F() [89/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseSingleMessage_InvalidTerminator   
)

Definition at line 144 of file message_test.cc.

References yaze::editor::ParseSingleMessage().

Here is the call graph for this function:

◆ TEST_F() [90/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseSingleMessage_EmptyData   
)

Definition at line 152 of file message_test.cc.

References yaze::editor::ParseSingleMessage().

Here is the call graph for this function:

◆ TEST_F() [91/185]

yaze::test::TEST_F ( MessageRomTest  ,
OptimizeMessageForDictionary_Basic   
)

Definition at line 164 of file message_test.cc.

References yaze::editor::MessageData::OptimizeMessageForDictionary().

Here is the call graph for this function:

◆ TEST_F() [92/185]

yaze::test::TEST_F ( MessageRomTest  ,
SetMessage_Success   
)

Definition at line 177 of file message_test.cc.

References yaze::editor::MessageData::ContentsParsed, yaze::editor::MessageData::RawString, and yaze::editor::MessageData::SetMessage().

Here is the call graph for this function:

◆ TEST_F() [93/185]

yaze::test::TEST_F ( MessageRomTest  ,
FindMatchingElement_CommandWithArgument   
)

◆ TEST_F() [94/185]

yaze::test::TEST_F ( MessageRomTest  ,
FindMatchingElement_InvalidCommand   
)

Definition at line 198 of file message_test.cc.

References yaze::editor::ParsedElement::Active, and yaze::editor::FindMatchingElement().

Here is the call graph for this function:

◆ TEST_F() [95/185]

yaze::test::TEST_F ( MessageRomTest  ,
BuildDictionaryEntries_CorrectSize   
)

Definition at line 205 of file message_test.cc.

References yaze::editor::BuildDictionaryEntries(), and yaze::editor::kNumDictionaryEntries.

Here is the call graph for this function:

◆ TEST_F() [96/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseMessageData_CommandWithArgument_NoExtraCharacters   
)

Definition at line 211 of file message_test.cc.

References yaze::editor::MessageData::Address, yaze::editor::MessageData::Data, yaze::editor::MessageData::ID, and yaze::editor::ParseMessageData().

Here is the call graph for this function:

◆ TEST_F() [97/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseMessageData_MultipleCommandsWithArguments   
)

Definition at line 236 of file message_test.cc.

References yaze::editor::MessageData::Data, yaze::editor::MessageData::ID, and yaze::editor::ParseMessageData().

Here is the call graph for this function:

◆ TEST_F() [98/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseMessageData_CommandWithoutArgument   
)

Definition at line 259 of file message_test.cc.

References yaze::editor::MessageData::Data, yaze::editor::MessageData::ID, and yaze::editor::ParseMessageData().

Here is the call graph for this function:

◆ TEST_F() [99/185]

yaze::test::TEST_F ( MessageRomTest  ,
ParseMessageData_MixedCommands   
)

Definition at line 277 of file message_test.cc.

References yaze::editor::MessageData::Data, yaze::editor::MessageData::ID, and yaze::editor::ParseMessageData().

Here is the call graph for this function:

◆ RunIntegrationTest()

◆ MATCHER_P() [1/4]

yaze::test::MATCHER_P ( StatusIs  ,
status  ,
""   
)

Definition at line 26 of file testing.h.

◆ IsOkAndHolds()

template<typename T >
::testing::AssertionResult yaze::test::IsOkAndHolds ( const absl::StatusOr< T > &  status_or,
const T &  value 
)

Definition at line 30 of file testing.h.

Referenced by MATCHER_P().

◆ MATCHER_P() [2/4]

yaze::test::MATCHER_P ( IsOkAndHolds  ,
value  ,
""   
)

Definition at line 43 of file testing.h.

References IsOkAndHolds().

Here is the call graph for this function:

◆ MATCHER_P() [3/4]

yaze::test::MATCHER_P ( StatusIsWithMessage  ,
message  ,
""   
)

Definition at line 46 of file testing.h.

◆ MATCHER_P() [4/4]

yaze::test::MATCHER_P ( StatusIsWithCode  ,
code  ,
""   
)

Definition at line 51 of file testing.h.

◆ IsOkAndMatches()

template<typename T , typename Matcher >
::testing::AssertionResult yaze::test::IsOkAndMatches ( const absl::StatusOr< T > &  status_or,
const Matcher &  matcher 
)

Definition at line 58 of file testing.h.

◆ StatusOrEqual()

template<typename T >
::testing::AssertionResult yaze::test::StatusOrEqual ( const absl::StatusOr< T > &  a,
const absl::StatusOr< T > &  b 
)

Definition at line 73 of file testing.h.

◆ TEST() [1/53]

yaze::test::TEST ( HexTest  ,
HexByte   
)

◆ TEST() [2/53]

yaze::test::TEST ( HexTest  ,
HexWord   
)

◆ TEST() [3/53]

yaze::test::TEST ( HexTest  ,
HexLong   
)

◆ TEST() [4/53]

yaze::test::TEST ( HexTest  ,
HexLongLong   
)

◆ TEST() [5/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
TrivialRepeatedBytes   
)

Definition at line 106 of file compression_test.cc.

◆ TEST() [6/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
RepeatedBytesBetweenUncompressable   
)

Definition at line 110 of file compression_test.cc.

◆ TEST() [7/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
RepeatedBytesBeforeUncompressable   
)

Definition at line 115 of file compression_test.cc.

◆ TEST() [8/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
RepeatedBytesAfterUncompressable   
)

Definition at line 120 of file compression_test.cc.

◆ TEST() [9/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
RepeatedBytesAfterUncompressableRepeated   
)

Definition at line 125 of file compression_test.cc.

◆ TEST() [10/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
RepeatedBytesBeforeUncompressableRepeated   
)

Definition at line 131 of file compression_test.cc.

◆ TEST() [11/53]

◆ TEST() [12/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
CompressionSingleSet   
)
Todo:
Check why header built is off by one

Definition at line 163 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [13/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
CompressionSingleWord   
)

Definition at line 172 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [14/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
CompressionSingleIncrement   
)

Definition at line 181 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [15/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
CompressionSingleCopy   
)

Definition at line 189 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [16/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
CompressionSingleOverflowIncrement   
)

Definition at line 198 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [17/53]

yaze::test::TEST ( HandleDirectCopyTest  ,
NotDirectCopyWithAccumulatedBytes   
)

TEST(LC_LZ2_CompressionTest, CompressionSingleCopyRepeat) { std::vector<uint8_t> single_copy_expected = {0x03, 0x0A, 0x07, 0x14, 0x03, 0x0A, 0x07, 0x14};

auto comp_result = ExpectCompressV3Ok( single_copy_expected, {BUILD_HEADER(0x00, 0x04), 0x03, 0x0A, 0x07, 0x14, BUILD_HEADER(0x04, 0x04), 0x00, 0x00, 0xFF}); EXPECT_THAT(single_copy_expected, ElementsAreArray(comp_result.data(), 6)); }

TEST(LC_LZ2_CompressionTest, CompressionMixedRepeatIncrement) { AssertCompressionQuality( {0x05, 0x05, 0x05, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x08, 0x0A, 0x00, 0x05}, {BUILD_HEADER(0x01, 0x04), 0x05, BUILD_HEADER(0x03, 0x06), 0x06, BUILD_HEADER(0x00, 0x01), 0x05, 0xFF}); }

TEST(LC_LZ2_CompressionTest, CompressionMixedIncrementIntraCopyOffset) { "Mixing, inc, alternate, intra copy" compress start: 3, length: 21 compressed length: 9 AssertCompressionQuality( {0x05, 0x05, 0x05, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x08, 0x0A, 0x00, 0x05}, {BUILD_HEADER(0x03, 0x07), 0x05, BUILD_HEADER(0x02, 0x06), 0x05, 0x02, BUILD_HEADER(0x04, 0x08), 0x05, 0x00, 0xFF}); }

TEST(LC_LZ2_CompressionTest, CompressionMixedIncrementIntraCopySource) { "Mixing, inc, alternate, intra copy" 0, 28 16 AssertCompressionQuality( {0x05, 0x05, 0x05, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x08, 0x0A, 0x00, 0x05}, {BUILD_HEADER(0x01, 0x04), 0x05, BUILD_HEADER(0x03, 0x06), 0x06, BUILD_HEADER(0x02, 0x06), 0x05, 0x02, BUILD_HEADER(0x04, 0x08), 0x08, 0x00, BUILD_HEADER(0x00, 0x04), 0x08, 0x0A, 0x00, 0x05, 0xFF}); }

Extended Header 111CCCLL LLLLLLLL CCC: Real command LLLLLLLLLL: Length

Normally you have 5 bits for the length, so the maximum value you can represent is 31 (which outputs 32 bytes). With the long length, you get 5 more bits for the length, so the maximum value you can represent becomes 1023, outputting 1024 bytes at a time.

void build_extended_header(uint8_t command, uint8_t length, uint8_t& byte1, uint8_t& byte2) { byte1 = command << 3; byte1 += (length - 1); byte1 += 0b11100000; byte2 = length >> 3; }

std::vector<uint8_t> CreateRepeatedBetweenUncompressable( int leftUncompressedSize, int repeatedByteSize, int rightUncompressedSize) { std::vector<uint8_t> result( leftUncompressedSize + repeatedByteSize + rightUncompressedSize, 0); std::fill_n(result.begin() + leftUncompressedSize, repeatedByteSize, 0x00); return result; }

TEST(LC_LZ2_CompressionTest, LengthBorderCompression) { "Length border compression" std::vector<uint8_t> result(42, 0); std::fill_n(result.begin(), 42, 0x05); AssertCompressionQuality(result, {BUILD_HEADER(0x04, 42), 0x05, 0x05, 0xFF});

"Extended length, 400 repeat of 5" std::vector<uint8_t> result2(400, 0); std::fill_n(result2.begin(), 400, 0x05); uint8_t byte1; uint8_t byte2; build_extended_header(0x01, 42, byte1, byte2); AssertCompressionQuality(result2, {byte1, byte2, 0x05, 0x05, 0xFF});

"Extended length, 1050 repeat of 5" std::vector<uint8_t> result3(1050, 0); std::fill_n(result3.begin(), 1050, 0x05); uint8_t byte3; uint8_t byte4; build_extended_header(0x04, 1050, byte3, byte4); AssertCompressionQuality(result3, {byte3, byte4, 0x05, 0x05, 0xFF});

// "Extended length, 2050 repeat of 5" std::vector<uint8_t> result4(2050, 0); std::fill_n(result4.begin(), 2050, 0x05); uint8_t byte5; uint8_t byte6; build_extended_header(0x04, 2050, byte5, byte6); AssertCompressionQuality(result4, {byte5, byte6, 0x05, 0x05, 0xFF}); }

TEST(LC_LZ2_CompressionTest, CompressionExtendedWordCopy) { ROM rom; uint8_t buffer[3000]; for (unsigned int i = 0; i < 3000; i += 2) { buffer[i] = 0x05; buffer[i + 1] = 0x06; } uint8_t hightlength_word_1050[] = { 0b11101011, 0xFF, 0x05, 0x06, BUILD_HEADER(0x02, 0x1A), 0x05, 0x06, 0xFF};

// "Extended word copy" auto comp_result = ExpectCompressOk(rom, buffer, 1050); EXPECT_THAT(hightlength_word_1050, ElementsAreArray(comp_result.data(), 8));

std::vector<uint8_t> buffer(3000, 0); std::fill_n(buffer.begin(), 3000, 0x05); for (unsigned int i = 0; i < 3000; i += 2) { buffer[i] = 0x05; buffer[i + 1] = 0x06; }

uint8_t byte1; uint8_t byte2; build_extended_header(0x02, 0x1A, byte1, byte2); AssertCompressionQuality( buffer, {0b11101011, 0xFF, 0x05, 0x06, byte1, byte2, 0x05, 0x06, 0xFF}); }

TEST(LC_LZ2_CompressionTest, CompressionMixedPatterns) { AssertCompressionQuality( {0x05, 0x05, 0x05, 0x06, 0x07, 0x06, 0x07, 0x08, 0x09, 0x0A}, {BUILD_HEADER(0x01, 0x03), 0x05, BUILD_HEADER(0x02, 0x04), 0x06, 0x07, BUILD_HEADER(0x03, 0x03), 0x08, 0xFF}); }

TEST(LC_LZ2_CompressionTest, CompressionLongIntraCopy) { ROM rom; uint8_t long_data[15] = {0x05, 0x06, 0x07, 0x08, 0x05, 0x06, 0x07, 0x08, 0x05, 0x06, 0x07, 0x08, 0x05, 0x06, 0x07}; uint8_t long_expected[] = {BUILD_HEADER(0x00, 0x04), 0x05, 0x06, 0x07, 0x08, BUILD_HEADER(0x04, 0x0C), 0x00, 0x00, 0xFF};

auto comp_result = ExpectCompressOk(rom, long_data, 15); EXPECT_THAT(long_expected, ElementsAreArray(comp_result.data(), sizeof(long_expected))); }

Definition at line 357 of file compression_test.cc.

References yaze::gfx::lc_lz2::CompressionContext::cmd_with_max.

◆ TEST() [18/53]

yaze::test::TEST ( HandleDirectCopyTest  ,
NotDirectCopyWithoutAccumulatedBytes   
)

◆ TEST() [19/53]

yaze::test::TEST ( HandleDirectCopyTest  ,
AccumulateBytesWithoutMax   
)

◆ TEST() [20/53]

yaze::test::TEST ( CheckIncByteV3Test  ,
IncreasingSequence   
)

Definition at line 382 of file compression_test.cc.

◆ TEST() [21/53]

yaze::test::TEST ( CheckIncByteV3Test  ,
IncreasingSequenceSurroundedByIdenticalBytes   
)

Definition at line 388 of file compression_test.cc.

◆ TEST() [22/53]

yaze::test::TEST ( CheckIncByteV3Test  ,
NotAnIncreasingSequence   
)

Definition at line 396 of file compression_test.cc.

◆ TEST() [23/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
DecompressionValidCommand   
)

Definition at line 403 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [24/53]

yaze::test::TEST ( LC_LZ2_CompressionTest  ,
DecompressionMixingCommand   
)

Definition at line 412 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [25/53]

yaze::test::TEST ( SnesColorTest  ,
DefaultConstructor   
)

Definition at line 27 of file snes_palette_test.cc.

References yaze::gfx::SnesColor::rgb(), and yaze::gfx::SnesColor::snes().

Here is the call graph for this function:

◆ TEST() [26/53]

yaze::test::TEST ( SnesColorTest  ,
RGBConstructor   
)

Definition at line 36 of file snes_palette_test.cc.

References yaze::gfx::SnesColor::rgb().

Here is the call graph for this function:

◆ TEST() [27/53]

yaze::test::TEST ( SnesColorTest  ,
SNESConstructor   
)

Definition at line 45 of file snes_palette_test.cc.

References yaze::gfx::SnesColor::snes().

Here is the call graph for this function:

◆ TEST() [28/53]

yaze::test::TEST ( SnesColorTest  ,
ConvertRgbToSnes   
)

Definition at line 51 of file snes_palette_test.cc.

◆ TEST() [29/53]

yaze::test::TEST ( SnesColorTest  ,
ConvertSnestoRGB   
)

Definition at line 57 of file snes_palette_test.cc.

References snes_color::blue, snes_color::green, and snes_color::red.

◆ TEST() [30/53]

yaze::test::TEST ( SnesColorTest  ,
ConvertSnesToRGB_Binary   
)

Definition at line 65 of file snes_palette_test.cc.

◆ TEST() [31/53]

yaze::test::TEST ( SnesColorTest  ,
Extraction   
)

Definition at line 82 of file snes_palette_test.cc.

◆ TEST() [32/53]

yaze::test::TEST ( SnesColorTest  ,
Convert   
)

Definition at line 94 of file snes_palette_test.cc.

References yaze::gfx::Convert().

Here is the call graph for this function:

◆ TEST() [33/53]

yaze::test::TEST ( SnesPaletteTest  ,
DefaultConstructor   
)

Definition at line 113 of file snes_palette_test.cc.

References yaze::gfx::SnesPalette::empty(), and yaze::gfx::SnesPalette::size().

Here is the call graph for this function:

◆ TEST() [34/53]

yaze::test::TEST ( SnesPaletteTest  ,
AddColor   
)

Definition at line 119 of file snes_palette_test.cc.

References yaze::gfx::SnesPalette::AddColor(), and yaze::gfx::SnesPalette::size().

Here is the call graph for this function:

◆ TEST() [35/53]

yaze::test::TEST ( SnesPaletteTest  ,
AddMultipleColors   
)

Definition at line 126 of file snes_palette_test.cc.

References yaze::gfx::SnesPalette::AddColor(), and yaze::gfx::SnesPalette::size().

Here is the call graph for this function:

◆ TEST() [36/53]

yaze::test::TEST ( SnesPaletteTest  ,
UpdateColor   
)

Definition at line 135 of file snes_palette_test.cc.

References yaze::gfx::SnesPalette::AddColor(), and yaze::gfx::SnesPalette::UpdateColor().

Here is the call graph for this function:

◆ TEST() [37/53]

yaze::test::TEST ( SnesPaletteTest  ,
SubPalette   
)

Definition at line 145 of file snes_palette_test.cc.

References yaze::gfx::SnesPalette::AddColor(), and yaze::gfx::SnesPalette::sub_palette().

Here is the call graph for this function:

◆ TEST() [38/53]

yaze::test::TEST ( SnesPaletteTest  ,
VectorConstructor   
)

Definition at line 160 of file snes_palette_test.cc.

References yaze::gfx::SnesPalette::size().

Here is the call graph for this function:

◆ TEST() [39/53]

yaze::test::TEST ( SnesPaletteTest  ,
Clear   
)

◆ TEST() [40/53]

yaze::test::TEST ( SnesPaletteTest  ,
Iterator   
)

Definition at line 176 of file snes_palette_test.cc.

References yaze::gfx::SnesPalette::AddColor().

Here is the call graph for this function:

◆ TEST() [41/53]

yaze::test::TEST ( SnesPaletteTest  ,
OperatorAccess   
)

Definition at line 191 of file snes_palette_test.cc.

References yaze::gfx::SnesPalette::AddColor().

Here is the call graph for this function:

◆ TEST() [42/53]

yaze::test::TEST ( SnesTileTest  ,
UnpackBppTile   
)

Definition at line 13 of file snes_tile_test.cc.

References yaze::gfx::UnpackBppTile().

Here is the call graph for this function:

◆ TEST() [43/53]

yaze::test::TEST ( SnesTileTest  ,
PackBppTile   
)

Definition at line 75 of file snes_tile_test.cc.

References snes_tile8::data, and yaze::gfx::PackBppTile().

Here is the call graph for this function:

◆ TEST() [44/53]

yaze::test::TEST ( SnesTileTest  ,
ConvertBpp   
)

Definition at line 99 of file snes_tile_test.cc.

References yaze::gfx::ConvertBpp().

Here is the call graph for this function:

◆ TEST() [45/53]

◆ TEST() [46/53]

yaze::test::TEST ( SnesTileTest  ,
TileInfoToWord   
)

Definition at line 141 of file snes_tile_test.cc.

References yaze::gfx::TileInfoToWord().

Here is the call graph for this function:

◆ TEST() [47/53]

yaze::test::TEST ( SnesTileTest  ,
WordToTileInfo   
)

◆ TEST() [48/53]

yaze::test::TEST ( SnesTileTest  ,
Tile32   
)

◆ TEST() [49/53]

yaze::test::TEST ( SnesTileTest  ,
Tile16   
)

◆ TEST_F() [100/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
TileToCanvas_BasicConversion   
)

Definition at line 34 of file canvas_automation_api_test.cc.

References yaze::gui::CanvasAutomationAPI::TileToCanvas().

Here is the call graph for this function:

◆ TEST_F() [101/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
TileToCanvas_WithZoom   
)

Definition at line 58 of file canvas_automation_api_test.cc.

◆ TEST_F() [102/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
CanvasToTile_BasicConversion   
)

Definition at line 73 of file canvas_automation_api_test.cc.

◆ TEST_F() [103/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
CanvasToTile_WithZoom   
)

Definition at line 92 of file canvas_automation_api_test.cc.

◆ TEST_F() [104/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
CoordinateRoundTrip   
)

Definition at line 107 of file canvas_automation_api_test.cc.

◆ TEST_F() [105/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
IsInBounds_ValidCoordinates   
)

Definition at line 124 of file canvas_automation_api_test.cc.

◆ TEST_F() [106/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
IsInBounds_InvalidCoordinates   
)

Definition at line 130 of file canvas_automation_api_test.cc.

◆ TEST_F() [107/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
SetTileAt_WithCallback   
)

Definition at line 143 of file canvas_automation_api_test.cc.

◆ TEST_F() [108/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
SetTileAt_OutOfBounds   
)

Definition at line 160 of file canvas_automation_api_test.cc.

◆ TEST_F() [109/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
GetTileAt_WithCallback   
)

Definition at line 175 of file canvas_automation_api_test.cc.

◆ TEST_F() [110/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
GetTileAt_OutOfBounds   
)

Definition at line 187 of file canvas_automation_api_test.cc.

◆ TEST_F() [111/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
SetTiles_BatchOperation   
)

Definition at line 195 of file canvas_automation_api_test.cc.

◆ TEST_F() [112/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
SelectTile   
)

Definition at line 218 of file canvas_automation_api_test.cc.

◆ TEST_F() [113/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
SelectTileRect   
)

Definition at line 226 of file canvas_automation_api_test.cc.

◆ TEST_F() [114/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
SelectTileRect_SwappedCoordinates   
)

Definition at line 242 of file canvas_automation_api_test.cc.

◆ TEST_F() [115/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
ClearSelection   
)

Definition at line 251 of file canvas_automation_api_test.cc.

◆ TEST_F() [116/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
SelectTile_OutOfBounds   
)

Definition at line 264 of file canvas_automation_api_test.cc.

◆ TEST_F() [117/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
SetZoom_ValidRange   
)

Definition at line 278 of file canvas_automation_api_test.cc.

◆ TEST_F() [118/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
SetZoom_Clamping   
)

Definition at line 289 of file canvas_automation_api_test.cc.

◆ TEST_F() [119/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
ScrollToTile_ValidTile   
)

Definition at line 301 of file canvas_automation_api_test.cc.

◆ TEST_F() [120/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
ScrollToTile_OutOfBounds   
)

Definition at line 310 of file canvas_automation_api_test.cc.

◆ TEST_F() [121/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
CenterOn_ValidTile   
)

Definition at line 318 of file canvas_automation_api_test.cc.

◆ TEST_F() [122/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
CenterOn_OutOfBounds   
)

Definition at line 329 of file canvas_automation_api_test.cc.

◆ TEST_F() [123/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
GetDimensions   
)

Definition at line 340 of file canvas_automation_api_test.cc.

◆ TEST_F() [124/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
GetDimensions_WithZoom   
)

Definition at line 349 of file canvas_automation_api_test.cc.

◆ TEST_F() [125/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
GetVisibleRegion   
)

Definition at line 358 of file canvas_automation_api_test.cc.

◆ TEST_F() [126/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
IsTileVisible_AtOrigin   
)

Definition at line 373 of file canvas_automation_api_test.cc.

◆ TEST_F() [127/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
IsTileVisible_OutOfBounds   
)

Definition at line 386 of file canvas_automation_api_test.cc.

◆ TEST_F() [128/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
CompleteWorkflow   
)

Definition at line 397 of file canvas_automation_api_test.cc.

◆ TEST_F() [129/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
DifferentGridSizes   
)

Definition at line 435 of file canvas_automation_api_test.cc.

References yaze::gui::k32x32, and yaze::gui::k8x8.

◆ TEST_F() [130/185]

yaze::test::TEST_F ( CanvasAutomationAPITest  ,
MultipleZoomLevels   
)

Definition at line 455 of file canvas_automation_api_test.cc.

◆ TEST_F() [131/185]

yaze::test::TEST_F ( CanvasCoordinateSyncTest  ,
HoverMousePos_InitialState   
)

Definition at line 42 of file canvas_coordinate_sync_test.cc.

◆ TEST_F() [132/185]

yaze::test::TEST_F ( CanvasCoordinateSyncTest  ,
HoverMousePos_IndependentFromDrawnPos   
)

Definition at line 51 of file canvas_coordinate_sync_test.cc.

◆ TEST_F() [133/185]

yaze::test::TEST_F ( CanvasCoordinateSyncTest  ,
CoordinateSpace_WorldNotScreen   
)

Definition at line 69 of file canvas_coordinate_sync_test.cc.

◆ TEST_F() [134/185]

yaze::test::TEST_F ( CanvasCoordinateSyncTest  ,
MapCalculation_SmallMaps   
)

Definition at line 97 of file canvas_coordinate_sync_test.cc.

References yaze::zelda3::kOverworldMapSize.

◆ TEST_F() [135/185]

yaze::test::TEST_F ( CanvasCoordinateSyncTest  ,
MapCalculation_LargeMaps   
)

Definition at line 124 of file canvas_coordinate_sync_test.cc.

◆ TEST_F() [136/185]

yaze::test::TEST_F ( CanvasCoordinateSyncTest  ,
HoverPosition_ScaleInvariant   
)

Definition at line 154 of file canvas_coordinate_sync_test.cc.

◆ TEST_F() [137/185]

yaze::test::TEST_F ( CanvasCoordinateSyncTest  ,
OverworldMapHighlight_UsesHoverNotDrawn   
)

Definition at line 181 of file canvas_coordinate_sync_test.cc.

◆ TEST_F() [138/185]

yaze::test::TEST_F ( CanvasCoordinateSyncTest  ,
OverworldMapIndex_From8x8Grid   
)

Definition at line 201 of file canvas_coordinate_sync_test.cc.

References yaze::zelda3::kOverworldMapSize.

◆ TEST_F() [139/185]

yaze::test::TEST_F ( CanvasCoordinateSyncTest  ,
MapBoundaries_512x512   
)

Definition at line 249 of file canvas_coordinate_sync_test.cc.

References yaze::zelda3::kOverworldMapSize.

◆ TEST_F() [140/185]

yaze::test::TEST_F ( CanvasCoordinateSyncTest  ,
MapBoundaries_1024x1024   
)

Definition at line 274 of file canvas_coordinate_sync_test.cc.

◆ TEST_F() [141/185]

yaze::test::TEST_F ( TileSelectorWidgetTest  ,
Construction   
)

Definition at line 38 of file tile_selector_widget_test.cc.

References yaze::gui::TileSelectorWidget::GetSelectedTileID().

Here is the call graph for this function:

◆ TEST_F() [142/185]

yaze::test::TEST_F ( TileSelectorWidgetTest  ,
ConstructionWithConfig   
)

Definition at line 44 of file tile_selector_widget_test.cc.

References yaze::gui::TileSelectorWidget::GetSelectedTileID().

Here is the call graph for this function:

◆ TEST_F() [143/185]

yaze::test::TEST_F ( TileSelectorWidgetTest  ,
AttachCanvas   
)

Definition at line 50 of file tile_selector_widget_test.cc.

References yaze::gui::TileSelectorWidget::AttachCanvas().

Here is the call graph for this function:

◆ TEST_F() [144/185]

yaze::test::TEST_F ( TileSelectorWidgetTest  ,
SetTileCount   
)

◆ TEST_F() [145/185]

yaze::test::TEST_F ( TileSelectorWidgetTest  ,
SetSelectedTile   
)

◆ TEST_F() [146/185]

yaze::test::TEST_F ( TileSelectorWidgetTest  ,
TileOrigin   
)

Definition at line 89 of file tile_selector_widget_test.cc.

References yaze::gui::TileSelectorWidget::SetTileCount(), and yaze::gui::TileSelectorWidget::TileOrigin().

Here is the call graph for this function:

◆ TEST_F() [147/185]

yaze::test::TEST_F ( TileSelectorWidgetTest  ,
RenderWithoutAtlas   
)

Definition at line 120 of file tile_selector_widget_test.cc.

References yaze::gui::TileSelectorWidget::AttachCanvas(), and yaze::gui::TileSelectorWidget::Render().

Here is the call graph for this function:

◆ TEST_F() [148/185]

◆ TEST_F() [149/185]

yaze::test::TEST_F ( TileSelectorWidgetTest  ,
ScrollToTile   
)

◆ TEST_F() [150/185]

◆ TEST_F() [151/185]

yaze::test::TEST_F ( RomTest  ,
Uninitialized   
)

Definition at line 29 of file rom_test.cc.

◆ TEST_F() [152/185]

yaze::test::TEST_F ( RomTest  ,
LoadFromFile   
)

Definition at line 34 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [153/185]

yaze::test::TEST_F ( RomTest  ,
LoadFromFileInvalid   
)

Definition at line 43 of file rom_test.cc.

◆ TEST_F() [154/185]

yaze::test::TEST_F ( RomTest  ,
LoadFromFileEmpty   
)

Definition at line 50 of file rom_test.cc.

◆ TEST_F() [155/185]

yaze::test::TEST_F ( RomTest  ,
ReadByteOk   
)

Definition at line 55 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [156/185]

yaze::test::TEST_F ( RomTest  ,
ReadByteInvalid   
)

Definition at line 65 of file rom_test.cc.

◆ TEST_F() [157/185]

yaze::test::TEST_F ( RomTest  ,
ReadWordOk   
)

Definition at line 70 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [158/185]

yaze::test::TEST_F ( RomTest  ,
ReadWordInvalid   
)

Definition at line 81 of file rom_test.cc.

◆ TEST_F() [159/185]

yaze::test::TEST_F ( RomTest  ,
ReadLongOk   
)

Definition at line 86 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [160/185]

yaze::test::TEST_F ( RomTest  ,
ReadBytesOk   
)

Definition at line 98 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [161/185]

yaze::test::TEST_F ( RomTest  ,
ReadBytesOutOfRange   
)

Definition at line 106 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [162/185]

yaze::test::TEST_F ( RomTest  ,
WriteByteOk   
)

Definition at line 114 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [163/185]

yaze::test::TEST_F ( RomTest  ,
WriteWordOk   
)

Definition at line 125 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [164/185]

yaze::test::TEST_F ( RomTest  ,
WriteLongOk   
)

Definition at line 136 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [165/185]

yaze::test::TEST_F ( RomTest  ,
WriteTransactionSuccess   
)

Definition at line 147 of file rom_test.cc.

References EXPECT_OK, yaze::Rom::LoadFromData(), and yaze::Rom::WriteTransaction().

Here is the call graph for this function:

◆ TEST_F() [166/185]

yaze::test::TEST_F ( RomTest  ,
WriteTransactionFailure   
)

Definition at line 160 of file rom_test.cc.

References EXPECT_OK, yaze::Rom::LoadFromData(), and yaze::Rom::WriteTransaction().

Here is the call graph for this function:

◆ TEST_F() [167/185]

yaze::test::TEST_F ( RomTest  ,
ReadTransactionSuccess   
)

Definition at line 174 of file rom_test.cc.

References EXPECT_OK, yaze::Rom::LoadFromData(), and yaze::Rom::ReadTransaction().

Here is the call graph for this function:

◆ TEST_F() [168/185]

yaze::test::TEST_F ( RomTest  ,
ReadTransactionFailure   
)

Definition at line 186 of file rom_test.cc.

References EXPECT_OK, yaze::Rom::LoadFromData(), and yaze::Rom::ReadTransaction().

Here is the call graph for this function:

◆ TEST_F() [169/185]

yaze::test::TEST_F ( RomTest  ,
SaveTruncatesExistingFile   
)

◆ TEST_F() [170/185]

yaze::test::TEST_F ( RomTest  ,
TransactionRollbackRestoresOriginals   
)

Definition at line 223 of file rom_test.cc.

References yaze::Transaction::Commit(), EXPECT_OK, yaze::Transaction::WriteByte(), and yaze::Transaction::WriteWord().

Here is the call graph for this function:

◆ TEST() [50/53]

◆ TEST() [51/53]

yaze::test::TEST ( DungeonToolsetTest  ,
CallbackFunctionality   
)

◆ TEST() [52/53]

◆ TEST() [53/53]

yaze::test::TEST ( ComponentArchitectureTest  ,
FileSizeReduction   
)

◆ TEST_F() [171/185]

◆ TEST_F() [172/185]

◆ TEST_F() [173/185]

◆ TEST_F() [174/185]

◆ TEST_F() [175/185]

◆ TEST_F() [176/185]

◆ TEST_F() [177/185]

yaze::test::TEST_F ( ObjectParserTest  ,
ParseSubtype1Object   
)

Definition at line 63 of file object_parser_test.cc.

◆ TEST_F() [178/185]

yaze::test::TEST_F ( ObjectParserTest  ,
ParseSubtype2Object   
)

Definition at line 76 of file object_parser_test.cc.

◆ TEST_F() [179/185]

yaze::test::TEST_F ( ObjectParserTest  ,
ParseSubtype3Object   
)

Definition at line 84 of file object_parser_test.cc.

◆ TEST_F() [180/185]

yaze::test::TEST_F ( ObjectParserTest  ,
GetObjectSubtype   
)

Definition at line 92 of file object_parser_test.cc.

◆ TEST_F() [181/185]

yaze::test::TEST_F ( ObjectParserTest  ,
ParseObjectSize   
)

Definition at line 106 of file object_parser_test.cc.

◆ TEST_F() [182/185]

yaze::test::TEST_F ( ObjectParserTest  ,
ParseObjectRoutine   
)

Definition at line 118 of file object_parser_test.cc.

◆ TEST_F() [183/185]

yaze::test::TEST_F ( ObjectParserTest  ,
InvalidObjectId   
)

Definition at line 130 of file object_parser_test.cc.

◆ TEST_F() [184/185]

yaze::test::TEST_F ( ObjectParserTest  ,
NullRom   
)

Definition at line 136 of file object_parser_test.cc.

References yaze::zelda3::ObjectParser::ParseObject().

Here is the call graph for this function:

◆ TEST_F() [185/185]

yaze::test::TEST_F ( SpriteBuilderTest  ,
BuildSpritePropertiesOk   
)

Definition at line 56 of file sprite_builder_test.cc.

◆ ParseArguments()

◆ SetupTestEnvironment()

void yaze::test::SetupTestEnvironment ( const TestConfig config)

◆ ConfigureTestFilters()

void yaze::test::ConfigureTestFilters ( const TestConfig config)