fix(tooling): cargo fmt + godot-cold-parse cache restore (gate round)
fmt: atlas_data_proxy.rs test code. godot-cold-parse: the cold parse re-seeds the class cache WITHOUT addon classes (gdUnit4's GdUnitTestCIRunner missing), leaving tests/run-godot unable to start (0 tests / 355ms — caught by the pre-push gate running the suite right after this script). The script now restores a full cache via a final --import pass before exiting; the cold verdict is unaffected. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -237,8 +237,11 @@ mod tests {
|
||||
fn handle_star_map_request_reads_and_parses_file() {
|
||||
let n = SEQ.fetch_add(1, Ordering::Relaxed);
|
||||
let path = std::env::temp_dir().join(format!("sr_starmap_{}_{n}.json", std::process::id()));
|
||||
std::fs::write(&path, r#"{"_meta": {"v": 1}, "nodes": [1, 2], "edges": []}"#)
|
||||
.expect("write fixture json");
|
||||
std::fs::write(
|
||||
&path,
|
||||
r#"{"_meta": {"v": 1}, "nodes": [1, 2], "edges": []}"#,
|
||||
)
|
||||
.expect("write fixture json");
|
||||
|
||||
let resp = handle_star_map_request(&StarMapRequest { star_map: true }, &path);
|
||||
assert_eq!(resp.status, StarMapStatus::Ready);
|
||||
@@ -266,7 +269,8 @@ mod tests {
|
||||
#[test]
|
||||
fn handle_star_map_request_malformed_json_is_error() {
|
||||
let n = SEQ.fetch_add(1, Ordering::Relaxed);
|
||||
let path = std::env::temp_dir().join(format!("sr_starmap_bad_{}_{n}.json", std::process::id()));
|
||||
let path =
|
||||
std::env::temp_dir().join(format!("sr_starmap_bad_{}_{n}.json", std::process::id()));
|
||||
std::fs::write(&path, "{ not valid json").expect("write fixture json");
|
||||
|
||||
let resp = handle_star_map_request(&StarMapRequest { star_map: true }, &path);
|
||||
|
||||
Reference in New Issue
Block a user