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
@@ -1,7 +1,5 @@
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
// Run before logging::init() so the cache rename isn't blocked by a
|
||||
// freshly-created ~/.cache/rmcl/ directory.
|
||||
rmcl::migrate_legacy_rename();
|
||||
|
||||
// Guard must stay in scope to keep the log file writer alive
|
||||
|
||||
Reference in new issue
Block a user