You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve test coverage for rpc_formatter.go edge cases
Add missing test cases to TestFormatRPCMessage, TestFormatRPCMessageMarkdown,
and TestFormatJSONWithoutFields that cover untested branches in rpc_formatter.go:
- formatRPCMessage: empty ServerID (no server prefix), empty Payload, and
response with error but no payload
- formatRPCMessageMarkdown: empty ServerID, empty Payload (no code block),
and tools/call with a non-string 'name' field in params (no tool name appended)
- formatJSONWithoutFields: nil fieldsToRemove slice and removing non-existent fields
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments