refactored: move public-API filesystem tests to tests/
Per Phase C of the test overhaul: tests that touch the filesystem and exercise the public API surface (scan_screenshots, scan_shaders, scan_worlds, scan_resource_packs, log_files) move from inline mod tests into tests/. They now consume rmcl as an external crate, mirroring how real callers would. AccountStore::store_save_and_reload stays inline because the helper it needs (constructing AccountStore directly with a tempdir path) requires reaching into a private field; exposing that just for tests would leak implementation detail. The other accounts tests are in-memory and stay inline regardless. The extract_description_* tests in resource_packs stay inline since they are pure logic on serde_json::Value (no filesystem). image is added to dev-dependencies so integration tests can fabricate 1x1 PNG fixtures (already a regular dep of the lib).
This commit is contained in:
1 parent
c6fce8592a
commit
cc0dde106a
10 files changed
+349
-353
No files matched your search
@@ -76,3 +76,4 @@ tempfile = "3"
|
||||
insta = "1"
|
||||
wiremock = "0.6"
|
||||
rstest = "0.23"
|
||||
image = { version = "0.25", default-features = false, features = ["png"] }
|
||||
Reference in new issue
Block a user