rust-gamedig/crates/lib/src
Tom 87ed02420e
feat: Add best effort test to validate game ID rules (#111)
* [Test] Add best effort test to validate game ID rules

An attempt to implement the rules specified in #108 as a programmatic
test.

* [Test] Refactor ID rules to check if a mod exists after - in game name

This allows fivem to pass the check following rule 8, but could also
cause a false pass in some cases.

* [Test] Add unit tests for ID rule checker

Adds unit tests based on the examples in CONTRIBUTING.md to confirm in
those cases we would allow ID to pass. However these tests don't check
any error cases.

* test/id: Correctly extract protocol names

* games/defs: Fix unreal tournament IDs

* tests: Require game definitions to run ID tests

* tests: Improve comments on ID tests

* tests/id: Combine - seperated numbers

* games/defs: Fix darkest hour ID

* Add/Update badge

---------

Co-authored-by: GitHub Action <action@github.com>
2023-12-19 22:20:19 +01:00
..
errors fix: remove unwrapping in an assert 2023-12-10 19:46:12 +02:00
games feat: Add best effort test to validate game ID rules (#111) 2023-12-19 22:20:19 +01:00
protocols perf: use of or followed by a function call 2023-12-11 03:58:40 +02:00
services chore: replace the closure with the method itself 2023-12-11 03:19:51 +02:00
buffer.rs refator: copy cli into mono 2023-10-16 23:20:47 +01:00
lib.rs refator: copy cli into mono 2023-10-16 23:20:47 +01:00
socket.rs chore: use map_or_else instead of if let Some() ... else 2023-12-11 03:41:41 +02:00
utils.rs refator: copy cli into mono 2023-10-16 23:20:47 +01:00