Skip to content

Commit

Permalink
chore: Reorganize tests to prevent future name collision
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoschiko committed Feb 18, 2024
1 parent a1dd940 commit 78ee270
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ mod send_response;
pub mod server;
pub mod stream;
pub mod types;

#[cfg(test)]
mod tests;
11 changes: 6 additions & 5 deletions tests/tests.rs → src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
use imap_flow::{
client::{ClientFlow, ClientFlowEvent, ClientFlowOptions},
server::{ServerFlow, ServerFlowEvent, ServerFlowOptions},
stream::AnyStream,
};
use imap_types::{
auth::AuthMechanism,
command::{Command, CommandBody},
Expand All @@ -11,6 +6,12 @@ use imap_types::{
};
use tokio::net::{TcpListener, TcpStream};

use crate::{
client::{ClientFlow, ClientFlowEvent, ClientFlowOptions},
server::{ServerFlow, ServerFlowEvent, ServerFlowOptions},
stream::AnyStream,
};

#[tokio::test]
async fn self_test() {
let greeting = Greeting::ok(None, "Hello, World!").unwrap();
Expand Down

0 comments on commit 78ee270

Please sign in to comment.