refactored: address final review punch list
Final-review pass flagged three items. All addressed: - src/instance/loader/mod.rs: rename and rewrite the two profile-shape tests so the test name matches what the body does. legacy_forge_version_info_round_trips_through_save_profile_json was misleading; the body never called save_installer_profile, it only wrote bytes to disk and read them back. Renamed to legacy_forge_version_info_deserialises_as_launch_profile and dropped the filesystem dance - the test was only ever verifying serde shape on the literal byte string. raw_fabric_profile_bytes_parse_as_launch_profile got the same treatment for consistency: dropped the TempDir + write + read round trip since the test only checks deserialisation. - src/tui/error_buffer.rs: removed has_errors_after_push. The test read global state populated by other tests in the same module, so it would still pass if push_error were a no-op. The push semantics are properly covered by peek_all_returns_newest_first and overflow_drops_oldest, both of which use unique tagged messages to isolate from cross-test interference.
This commit is contained in:
1 parent
8d7a0903fd
commit
d612f83446
2 files changed
+22
-58
No files matched your search
@@ -89,12 +89,6 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn has_errors_after_push() {
|
||||
push_error(make_event("err_has"));
|
||||
assert!(has_errors());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn peek_does_not_remove() {
|
||||
push_error(make_event("err_peek"));
|
||||
|
||||
Reference in new issue
Block a user