refactor(lightcraft-engine): move tests_*.rs to tests/

This commit is contained in:
aiongg
2026-10-26 18:24:54 +00:00
parent 41ec36ac83
commit 9cc8a1c765
45 changed files with 49 additions and 85 deletions
+2 -85
View File
@@ -1360,90 +1360,7 @@ pub fn json_delta(old: &Value, new: &Value) -> Option<Value> {
#[cfg(test)]
mod tests;
#[cfg(test)]
mod tests_album_order;
#[cfg(test)]
mod tests_album_remove;
#[cfg(test)]
mod tests_albums_local;
#[cfg(test)]
mod tests_color;
#[cfg(test)]
mod tests_constrain_crop;
#[cfg(test)]
mod tests_crop_angle;
#[cfg(test)]
mod tests_crop_aspect;
#[cfg(test)]
mod tests_denoise;
#[cfg(test)]
mod tests_export;
#[cfg(test)]
mod tests_face_models;
#[cfg(test)]
#[cfg(not(target_arch = "wasm32"))]
mod tests_face_recognize;
use tests::face_recognize as tests_face_recognize;
#[cfg(test)]
#[cfg(not(target_arch = "wasm32"))]
mod tests_face_tiles;
#[cfg(test)]
mod tests_filesystem_history;
#[cfg(all(test, not(target_arch = "wasm32")))]
mod tests_focus_scan;
#[cfg(test)]
mod tests_folders;
#[cfg(test)]
mod tests_forget_local;
#[cfg(test)]
mod tests_history_cursor;
#[cfg(test)]
mod tests_hold_view;
#[cfg(test)]
mod tests_ids_params;
#[cfg(test)]
mod tests_import;
#[cfg(test)]
mod tests_import_move;
#[cfg(test)]
mod tests_keyword_list;
#[cfg(test)]
mod tests_libops;
#[cfg(test)]
mod tests_library;
#[cfg(test)]
mod tests_lightroom_folder;
#[cfg(test)]
mod tests_mask_effects;
#[cfg(test)]
mod tests_merge;
#[cfg(test)]
mod tests_move_to_share;
#[cfg(test)]
mod tests_organize;
#[cfg(test)]
mod tests_persist;
#[cfg(test)]
mod tests_prefs;
#[cfg(test)]
mod tests_presets_scale;
#[cfg(test)]
mod tests_print;
#[cfg(test)]
mod tests_process;
#[cfg(test)]
mod tests_recheck;
#[cfg(test)]
mod tests_segment;
#[cfg(test)]
mod tests_settings_files;
#[cfg(test)]
mod tests_slide;
#[cfg(test)]
mod tests_slideshow_export;
#[cfg(test)]
mod tests_spots;
#[cfg(test)]
mod tests_sync;
#[cfg(test)]
mod tests_view_follow;
#[cfg(test)]
mod tests_xmp;
use tests::xmp as tests_xmp;
+47
View File
@@ -2,6 +2,53 @@ use serde_json::{Value, json};
use crate::{Selection, Session, command_specs};
mod album_order;
mod album_remove;
mod albums_local;
mod color;
mod constrain_crop;
mod crop_angle;
mod crop_aspect;
mod denoise;
mod export;
mod face_models;
#[cfg(not(target_arch = "wasm32"))]
pub(super) mod face_recognize;
#[cfg(not(target_arch = "wasm32"))]
mod face_tiles;
mod filesystem_history;
#[cfg(all(test, not(target_arch = "wasm32")))]
mod focus_scan;
mod folders;
mod forget_local;
mod history_cursor;
mod hold_view;
mod ids_params;
mod import;
mod import_move;
mod keyword_list;
mod libops;
mod library;
mod lightroom_folder;
mod mask_effects;
mod merge;
mod move_to_share;
mod organize;
mod persist;
mod prefs;
mod presets_scale;
mod print;
mod process;
mod recheck;
mod segment;
mod settings_files;
mod slide;
mod slideshow_export;
mod spots;
mod sync;
mod view_follow;
pub(super) mod xmp;
fn demo() -> Session {
Session::with_demo()
}