mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-01-07 02:52:54 +08:00
Fix tests
This commit is contained in:
parent
f84fb77ad6
commit
f9447f7360
@ -173,7 +173,9 @@ mod tests {
|
||||
}
|
||||
|
||||
fn get_class_field_value(module_name: &str, class_name: &str, field_name: &str) -> Option<u64> {
|
||||
let content = fs::read_to_string(format!("output/{}.json", module_name)).ok()?;
|
||||
let content =
|
||||
fs::read_to_string(format!("output/{}.json", module_name.replace(".", "_"))).ok()?;
|
||||
|
||||
let value: Value = serde_json::from_str(&content).ok()?;
|
||||
|
||||
value
|
||||
|
Loading…
Reference in New Issue
Block a user