Skip to content

SpecialLumpClass testing #114

Open
Open
@snake-biscuits

Description

@snake-biscuits

Forgot to write tests when all the SpecialLumpClasses got refactored in #68
#112 shows how big a mistake that was

.from_bytes() -> .as_bytes() -> .from_bytes shouldn't mutate
Some data loss is OK (comments in Entities etc.), but we should strive towards byte-for-byte

__init__ should also create a valid object

Some test maps & in-game checks will be needed in places (will it load? crash?)
Plenty of SpecialLumpClasses can be tested w/ tailored samples w/o a test map

SpecialLumpClasses w/ enough tests

  • id_software.quake.MipTextureLump
  • id_software.quake2.Visibility
  • id_software.quake3.Visibility
  • respawn.titanfall.EntityPartitions
  • shared.Entities
  • shared.PakFile
  • shared.TextureDataStringData
  • valve_physics.CollideLump
  • valve_physics.Displacement
  • strata.strata.PhysicsDisplacement

GameLumpClasses w/ enough tests

  • valve.source.GameLump_SPRPv4
    • nexon.vindictus69.GameLump_SPRPv6
      • nexon.vinductus.GameLump_SPRPv6
        • nexon.vindictus.GameLump_SPRPv7
    • valve.source.GameLump_SPRPv5
      • valve.source.GameLump_SPRPv6
        • valve.source.GameLump_SPRPv7
          • valve.left4dead.GameLump_SPRPv8
            • valve.left4dead2.GameLump_SPRPv9
              • valve.sdk_2013_x360.GameLump_SPRPv9_x360
            • valve.sdk_2013_x360.GameLump_SPRPv8_x360
          • valve.orange_box.GameLump_SPRPv10
            • valve.sdk_2013.GameLump_SPRPv10
              • valve.sdk_2013.GameLump_SPRPv11
                • respawn.titanfall.GameLump_SPRPv12
                  • respawn.titanfall_x360.GameLump_SPRPv12
                  • respawn.titanfall2.GameLump_SPRPv13
                • strata.strata.GameLump_SPRPv12
                  • strata.strata.GameLump_SPRPv13
                • utoplanet.merubasu.GameLump_SPRPv11
                • valve.sdk_2013_x360.GameLump_SPRPv11_x360
              • valve.sdk_2013_x360.GameLump_SPRPv10_x360
        • valve.orange_box_x360.GameLump_SPRPv6_x360
      • valve.orange_box_x360.GameLump_SPRPv5_x360
    • valve.orange_box_x360.GameLump_SPRPv4_x360

Metadata

Metadata

Labels

documentationThis issue involves a lack of documentationenhancementNew feature or requestneed testWe need to write a test for regression testingslow burnlots of work & will take a long time

Projects

Status

Todo: Test

Relationships

None yet

Development

No branches or pull requests

Issue actions