Skip to content

Commit 9b52f76

Browse files
author
Danielle Jenkins
committed
Fix imports
1 parent 1617587 commit 9b52f76

File tree

6 files changed

+12
-15
lines changed

6 files changed

+12
-15
lines changed

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
pub mod tools;
22
pub mod transport;
33

4-
// Re-export key components for easier access
5-
pub use tools::DocRouter;

src/tools/docs/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
pub mod docs;
2-
mod tests;
32

4-
pub use docs::DocRouter;
3+
pub use docs::DocRouter;
4+
5+
#[cfg(test)]
6+
mod tests;

src/tools/docs/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::tools::DocCache;
2-
use crate::DocRouter;
2+
use crate::tools::DocRouter;
33
use mcp_core::{Content, ToolError};
44
use serde_json::json;
55
use mcp_server::Router;
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
mod http_sse_server;
2-
mod tests;
32

4-
pub use http_sse_server::*;
3+
pub use http_sse_server::*;
4+
5+
#[cfg(test)]
6+
mod tests;

src/transport/http_sse_server/tests.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ async fn test_router_setup() {
2323
assert!(true);
2424
}
2525

26-
// Test removed since session_id is private
27-
// #[tokio::test]
28-
// async fn test_session_id_generation() {
29-
// // Test removed
30-
// }
31-
3226
#[tokio::test]
3327
async fn test_post_event_handler_not_found() {
3428
let app = App::new();
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
mod jsonrpc_frame_codec;
2-
mod tests;
2+
pub use jsonrpc_frame_codec::JsonRpcFrameCodec;
33

4-
pub use jsonrpc_frame_codec::JsonRpcFrameCodec;
4+
#[cfg(test)]
5+
mod tests;

0 commit comments

Comments
 (0)