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).
13 lines
318 B
Rust
13 lines
318 B
Rust
#[tokio::main]
|
|
async fn main() {
|
|
rmcl::migrate_legacy_rename();
|
|
|
|
// Guard must stay in scope to keep the log file writer alive
|
|
let _guard = rmcl::tui::logging::init();
|
|
if let Err(e) = color_eyre::install() {
|
|
eprintln!("Failed to install color-eyre: {}", e);
|
|
}
|
|
|
|
rmcl::cli_init().await
|
|
}
|