File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 66///
77/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
88/// Hash : 3d4877e69cbc9921e1b511a90cdf17d42483036b
9- /// Generated at : 2025-02-09 16:55:01
9+ /// Generated at : 2025-02-09 20:40:09
1010/// ----------------------------------------------------------------------------
1111///
1212/// MCP Protocol Version
Original file line number Diff line number Diff line change @@ -1278,5 +1278,9 @@ mod tests {
12781278 ) ;
12791279 let result = detect_message_type ( & json ! ( message) ) ;
12801280 assert ! ( matches!( result, MessageTypes :: Error ) ) ;
1281+
1282+ // default
1283+ let result = detect_message_type ( & json ! ( { } ) ) ;
1284+ assert ! ( matches!( result, MessageTypes :: Request ) ) ;
12811285 }
12821286}
Original file line number Diff line number Diff line change 66///
77/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
88/// Hash : 3d4877e69cbc9921e1b511a90cdf17d42483036b
9- /// Generated at : 2025-02-09 16:55:01
9+ /// Generated at : 2025-02-09 20:40:10
1010/// ----------------------------------------------------------------------------
1111///
1212/// MCP Protocol Version
Original file line number Diff line number Diff line change @@ -1267,5 +1267,9 @@ mod tests {
12671267 ) ;
12681268 let result = detect_message_type ( & json ! ( message) ) ;
12691269 assert ! ( matches!( result, MessageTypes :: Error ) ) ;
1270+
1271+ // default
1272+ let result = detect_message_type ( & json ! ( { } ) ) ;
1273+ assert ! ( matches!( result, MessageTypes :: Request ) ) ;
12701274 }
12711275}
You can’t perform that action at this time.
0 commit comments