Commit 0bf21a4
committed
Add comprehensive tests for RMCP tool functionality and JavaScript integration
- Introduced tests for tool builder methods, input/output schemas, and chained builder methods in `test_tool_builder_methods.rs`.
- Added tests for tool handler annotations in `test_tool_macro_annotations.rs`.
- Implemented extensive macro tests in `test_tool_macros.rs`, covering various scenarios including optional fields and generics.
- Created tests for tool result metadata serialization/deserialization in `test_tool_result_meta.rs`.
- Developed router tests in `test_tool_routers.rs` to validate tool routing functionality.
- Added JavaScript client and server tests in `test_with_js.rs`, including SSE and streamable HTTP communication.
- Implemented Python client and server tests in `test_with_python.rs`, ensuring compatibility with the RMCP protocol.
- Included necessary JavaScript and Python files for testing, along with their configurations.
- Updated `.gitignore` files for both JavaScript and Python test directories to exclude unnecessary files.1 parent ccd8fff commit 0bf21a4
File tree
112 files changed
+32129
-25
lines changed- vendor/rmcp
- src
- handler
- client
- server
- router
- wrapper
- model
- service
- transport
- common
- auth
- reqwest
- streamable_http_server
- session
- tests
- common
- test_deserialization
- test_message_schema
- test_with_js
- test_with_python
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
112 files changed
+32129
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Large diffs are not rendered by default.
0 commit comments