refactor: reorganize source and tests
This commit is contained in:
1 parent
15d76c18a0
commit
c6205a337c
139 files changed
+5532
-5548
No files matched your search
@@ -5,10 +5,7 @@ pub use render::{popup_rect, render};
|
||||
pub use state::{ImportResult, ImportStep, ImportWizardState, handle_key, take_result};
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) fn reset_for_test() {
|
||||
state::IMPORT_STATE
|
||||
.lock()
|
||||
.expect("import wizard state")
|
||||
.reset();
|
||||
*state::IMPORT_RESULT.lock().expect("import wizard result") = None;
|
||||
}
|
||||
#[path = "../../../tests/widgets/popups/import_modpack/support.rs"]
|
||||
mod test_support;
|
||||
#[cfg(test)]
|
||||
pub(crate) use test_support::reset as reset_for_test;
|
||||
Reference in new issue
Block a user