Rocket League patches often introduce new fields that cause parsing to fail with an "attribute unknown or not implemented" error.
Pull requests that update the attribute mapping in src/data.rs must include a sample replay in the test suite to prevent future regressions. This project uses insta for snapshot testing.
How to add a test case:
- Place the
.replayfile inassets/replays/good/. Use a short (4–5 chars) or descriptive filename. - Run the tests with the update flag to automatically create the new snapshot files (alternatively use cargo-insta or vscode):
INSTA_UPDATE=always cargo test- Include both the
.replayfile and the generated.snapfiles in the pull request