You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add comprehensive unit tests for Transport class
- Implement tests for parsing transport data from contents, including various scenarios such as empty lines, comments, multiple transports from the same origin, teleport duration adjustments, skill and item requirements, quest and varbit requirements, and more.
- Validate behavior for malformed data and ensure default values are used appropriately.
- Test filtering based on radius thresholds and ensure no transports are created for invalid origins or destinations.
- Cover edge cases such as permutations, missing fields, and specific transport types like agility shortcuts and teleportation.
* Refactor transport loading and add comprehensive tests
- Updated import paths for Transport and TransportLoader classes.
- Changed the method of loading transports from resources to use TransportLoader.
- Introduced a new test class TransportLoaderTest with extensive unit tests for the TransportLoader functionality.
- Added tests for various scenarios including basic transport parsing, handling of empty and comment lines, multiple transports from the same origin, skill and item requirements, quest requirements, varbit and varplayer requirements, and more.
- Ensured that malformed data is handled gracefully and that transports are not created for undefined origins or destinations.
- Implemented tests for filtering based on radius thresholds and ensuring that only valid transports are created.
* Add back comments to clarify transport handling logic in addTransportsFromContents method
* Add comments to clarify transport logic in TransportLoader class
* Add unit tests for TransportItems, TransportType, TransportVarCheck, TransportVarPlayer, and TransportVarbit classes
0 commit comments