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:
Hocuri
2025-01-20 20:07:20 +01:00
committed by l
parent 723ff25067
commit 1ebf2c1985
6 changed files with 5182 additions and 5192 deletions

File diff suppressed because it is too large Load Diff