mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
refactor: Move tests to their own files
- This [is said to lead improve compilation speed](https://matklad.github.io/2021/02/27/delete-cargo-integration-tests.html#Assorted-Tricks) - When grepping for a function invocation, this makes it easy to see whether it's from a test or "real" code - We're calling the files e.g. `chat_tests.rs` instead of `tests.rs` for the same reason why we moved `imap/mod.rs` to `imap.rs`: Otherwise, your editor always shows you that you're in the file `tests.rs` and you don't know which one. This is only moving mimeparser and chat tests, because these were the biggest files; we can move more files in subsequent PRs if we like it.
This commit is contained in:
3369
src/chat.rs
3369
src/chat.rs
File diff suppressed because it is too large
Load Diff
3360
src/chat/chat_tests.rs
Normal file
3360
src/chat/chat_tests.rs
Normal file
File diff suppressed because it is too large
Load Diff
1824
src/mimeparser.rs
1824
src/mimeparser.rs
File diff suppressed because it is too large
Load Diff
1819
src/mimeparser/mimeparser_tests.rs
Normal file
1819
src/mimeparser/mimeparser_tests.rs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -3028,4 +3028,4 @@ async fn add_or_lookup_contacts_by_address_list(
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
mod receive_imf_tests;
|
||||
|
||||
Reference in New Issue
Block a user