mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
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>
This commit is contained in:
parent
10169c9107
commit
87ed02420e
5 changed files with 570 additions and 7 deletions
8
.github/badges/node.svg
vendored
8
.github/badges/node.svg
vendored
|
|
@ -1,5 +1,5 @@
|
|||
<svg width="181.6" height="20" viewBox="0 0 1816 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Node game coverage: 14.64%">
|
||||
<title>Node game coverage: 14.64%</title>
|
||||
<svg width="181.6" height="20" viewBox="0 0 1816 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Node game coverage: 13.71%">
|
||||
<title>Node game coverage: 13.71%</title>
|
||||
<linearGradient id="a" x2="0" y2="100%">
|
||||
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
|
||||
<stop offset="1" stop-opacity=".1"/>
|
||||
|
|
@ -13,8 +13,8 @@
|
|||
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
|
||||
<text x="60" y="148" textLength="1176" fill="#000" opacity="0.25">Node game coverage</text>
|
||||
<text x="50" y="138" textLength="1176">Node game coverage</text>
|
||||
<text x="1331" y="148" textLength="440" fill="#000" opacity="0.25">14.64%</text>
|
||||
<text x="1321" y="138" textLength="440">14.64%</text>
|
||||
<text x="1331" y="148" textLength="440" fill="#000" opacity="0.25">13.71%</text>
|
||||
<text x="1321" y="138" textLength="440">13.71%</text>
|
||||
</g>
|
||||
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
Loading…
Add table
Add a link
Reference in a new issue