Add comprehensive test coverage for HTTP/SSE server and docs tools
- HTTP/SSE server: Add tests for app initialization and session management - Docs tools: Add tests for cache functionality, error handling, and network errors - Make components more testable by exposing necessary fields - Add mockito for HTTP testing support - Improve robust error handling in network tests - Add Tower util feature for ServiceExt support
This commit is contained in:
parent
2ab71b7667
commit
85b4116262
6 changed files with 404 additions and 40 deletions
|
@ -23,8 +23,9 @@ tokio = { version = "1", features = ["full"] }
|
|||
reqwest = { version = "0.11", features = ["json"] }
|
||||
axum = { version = "0.8", features = ["macros"] }
|
||||
tokio-util = { version = "0.7", features = ["io", "codec"]}
|
||||
tower = "0.4"
|
||||
tower = { version = "0.4", features = ["util"] }
|
||||
tower-service = "0.3"
|
||||
hyper = "0.14"
|
||||
|
||||
# Serialization and data formats
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
@ -41,6 +42,10 @@ futures = "0.3"
|
|||
rand = "0.8"
|
||||
clap = { version = "4.4", features = ["derive"] }
|
||||
|
||||
[dev-dependencies]
|
||||
# Testing utilities
|
||||
mockito = "1.2"
|
||||
|
||||
# Main binary with subcommands
|
||||
[[bin]]
|
||||
name = "cratedocs"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue