diff options
| author | KunoiSayami <[email protected]> | 2025-03-25 22:43:40 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2025-03-25 22:43:40 +0800 |
| commit | 8b091d4ddc499be6bc4ce4d430a0c09f433f9884 (patch) | |
| tree | 79504607082a248a1ad751bb4c88a4eb02c9f8e0 /src/test.rs | |
| parent | 645cda1b2faecb44b9c819634c412443f27d943c (diff) | |
refactor: Move functions out of main.rs
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'src/test.rs')
| -rw-r--r-- | src/test.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/test.rs b/src/test.rs index 3d54d71..e6e1bbc 100644 --- a/src/test.rs +++ b/src/test.rs @@ -18,7 +18,9 @@ #[cfg(test)] mod core { use crate::{ - IOModule, cmd_add_user, cmd_authenticate_cookie, cmd_init, cmd_repo_user_control, + authentication::{ + IOModule, cmd_add_user, cmd_authenticate_cookie, cmd_init, cmd_repo_user_control, + }, datastructures::{Config, TestSuite, rand_str}, get_arg_matches, }; @@ -99,10 +101,7 @@ mod core { "/?p=login", ])); let mut output = Vec::new(); - let mut module = IOModule { - reader: &correct_input[..], - writer: &mut output, - }; + let mut module = IOModule::new(&correct_input[..], &mut output); let cfg = Config::generate_test_config(); |
