Skip to content

Commit

Permalink
refactor: Move tests to their own files
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
Hocuri authored and link2xt committed Jan 20, 2025
1 parent 723ff25 commit 1ebf2c1
Show file tree
Hide file tree
Showing 6 changed files with 5,182 additions and 5,192 deletions.
Loading

0 comments on commit 1ebf2c1

Please sign in to comment.