mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
dont dump in test
This commit is contained in:
parent
4bd352feb9
commit
eb93434017
1 changed files with 0 additions and 14 deletions
|
|
@ -32,15 +32,6 @@ fn test_message_types(input_file: &str, snapshot_file: &str) {
|
|||
assert_eq!(expected, message_types);
|
||||
}
|
||||
|
||||
fn dump_message_types(input_file: &str, snapshot_file: &str) {
|
||||
let file = fs::read(input_file).expect("Unable to read file");
|
||||
let demo = Demo::new(file);
|
||||
let (_, message_types) =
|
||||
DemoParser::parse_with_analyser(demo.get_stream(), MessageTypeAnalyser::new()).unwrap();
|
||||
|
||||
fs::write(snapshot_file, serde_json::to_vec(&message_types).unwrap()).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn snapshot_test_small() {
|
||||
snapshot_test("data/small.dem", "data/small.json");
|
||||
|
|
@ -65,8 +56,3 @@ fn snapshot_test_malformed_cvar() {
|
|||
fn snapshot_test_decal() {
|
||||
snapshot_test("data/decal.dem", "data/decal.json");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn message_type_test_comp() {
|
||||
dump_message_types("data/comp.dem", "data/comp_message_types.json");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue