mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
switch to cargo-insta for snapshot testing
This commit is contained in:
parent
d20fbb8e37
commit
07039da23d
23 changed files with 42991 additions and 22877 deletions
20417
tests/snapshots/entity__entity_test.snap
Normal file
20417
tests/snapshots/entity__entity_test.snap
Normal file
File diff suppressed because it is too large
Load diff
42352
tests/snapshots/sendprops__flatten_test.snap
Normal file
42352
tests/snapshots/sendprops__flatten_test.snap
Normal file
File diff suppressed because it is too large
Load diff
2130
tests/snapshots/tests__comp.dem_minimal.snap
Normal file
2130
tests/snapshots/tests__comp.dem_minimal.snap
Normal file
File diff suppressed because it is too large
Load diff
1915
tests/snapshots/tests__decal.dem_minimal.snap
Normal file
1915
tests/snapshots/tests__decal.dem_minimal.snap
Normal file
File diff suppressed because it is too large
Load diff
1312
tests/snapshots/tests__emptysaytext.dem_minimal.snap
Normal file
1312
tests/snapshots/tests__emptysaytext.dem_minimal.snap
Normal file
File diff suppressed because it is too large
Load diff
1869
tests/snapshots/tests__gully.dem.snap
Normal file
1869
tests/snapshots/tests__gully.dem.snap
Normal file
File diff suppressed because it is too large
Load diff
2514
tests/snapshots/tests__gully.dem_minimal.snap
Normal file
2514
tests/snapshots/tests__gully.dem_minimal.snap
Normal file
File diff suppressed because it is too large
Load diff
1483
tests/snapshots/tests__malformed_cvar.dem_minimal.snap
Normal file
1483
tests/snapshots/tests__malformed_cvar.dem_minimal.snap
Normal file
File diff suppressed because it is too large
Load diff
2518
tests/snapshots/tests__nousers.dem_minimal.snap
Normal file
2518
tests/snapshots/tests__nousers.dem_minimal.snap
Normal file
File diff suppressed because it is too large
Load diff
2579
tests/snapshots/tests__protocol23.dem_minimal.snap
Normal file
2579
tests/snapshots/tests__protocol23.dem_minimal.snap
Normal file
File diff suppressed because it is too large
Load diff
1681
tests/snapshots/tests__saytext2.dem_minimal.snap
Normal file
1681
tests/snapshots/tests__saytext2.dem_minimal.snap
Normal file
File diff suppressed because it is too large
Load diff
49
tests/snapshots/tests__small.dem.snap
Normal file
49
tests/snapshots/tests__small.dem.snap
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
source: tests/tests.rs
|
||||
expression: state
|
||||
---
|
||||
{
|
||||
"players": [
|
||||
{
|
||||
"entity": 1,
|
||||
"position": {
|
||||
"x": -3599.1775,
|
||||
"y": 421.331,
|
||||
"z": 298.0
|
||||
},
|
||||
"health": 125,
|
||||
"max_health": 125,
|
||||
"class": "scout",
|
||||
"team": "red",
|
||||
"view_angle": 0.0,
|
||||
"pitch_angle": 0.35294342,
|
||||
"state": "Alive",
|
||||
"info": {
|
||||
"classes": {},
|
||||
"name": "Icewind | demos.tf",
|
||||
"userId": 2,
|
||||
"steamId": "[U:1:64229260]",
|
||||
"team": "other"
|
||||
},
|
||||
"charge": 0,
|
||||
"simtime": 78,
|
||||
"ping": 5,
|
||||
"in_pvs": true
|
||||
}
|
||||
],
|
||||
"buildings": {},
|
||||
"world": {
|
||||
"boundary_min": {
|
||||
"x": -3882.0,
|
||||
"y": -4570.0,
|
||||
"z": -560.0
|
||||
},
|
||||
"boundary_max": {
|
||||
"x": 5240.0,
|
||||
"y": 3936.0,
|
||||
"z": 1641.0
|
||||
}
|
||||
},
|
||||
"kills": [],
|
||||
"tick": 115
|
||||
}
|
||||
21
tests/snapshots/tests__small.dem_minimal.snap
Normal file
21
tests/snapshots/tests__small.dem_minimal.snap
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
source: tests/tests.rs
|
||||
expression: state
|
||||
---
|
||||
{
|
||||
"chat": [],
|
||||
"users": {
|
||||
"2": {
|
||||
"classes": {},
|
||||
"name": "Icewind | demos.tf",
|
||||
"userId": 2,
|
||||
"steamId": "[U:1:64229260]",
|
||||
"team": "other"
|
||||
}
|
||||
},
|
||||
"deaths": [],
|
||||
"rounds": [],
|
||||
"startTick": 68,
|
||||
"intervalPerTick": 0.015,
|
||||
"pauses": []
|
||||
}
|
||||
1617
tests/snapshots/tests__unicode-saytext.dem_minimal.snap
Normal file
1617
tests/snapshots/tests__unicode-saytext.dem_minimal.snap
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue