mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
[MCP Server] Fix tests according to the new format
(cherry picked from commit 96f2e6a0797f356d3abd6779cce3522f060a5d88) GitOrigin-RevId: 5b600eb143788feca739030c80b4c1e8baf2ec60
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a2cc14fe5c
commit
39068f3f87
@@ -14,6 +14,7 @@ class ReflectionCallableMcpTool(override val descriptor: McpToolDescriptor, priv
|
||||
return when {
|
||||
result.result == null -> McpToolCallResult.text("[null]")
|
||||
result.result is Unit -> McpToolCallResult.text("[success]")
|
||||
result.result is Char -> McpToolCallResult.text("'${result.result}'") // special case for String to avoid extra quotes added by Any?.toString()
|
||||
result.result is String -> McpToolCallResult.text(result.result) // special case for String to avoid extra quotes added by Any?.toString()
|
||||
result.result.javaClass.isPrimitive -> McpToolCallResult.text(result.result.toString())
|
||||
result.result is McpToolCallResult -> result.result
|
||||
|
||||
@@ -82,8 +82,6 @@ class InputSchemaTest {
|
||||
"properties": {
|
||||
"intArg": {
|
||||
"type": "integer",
|
||||
"minimum": -2147483648,
|
||||
"maximum": 2147483647,
|
||||
"description": "int description on parameter"
|
||||
}
|
||||
},
|
||||
@@ -137,8 +135,6 @@ class InputSchemaTest {
|
||||
"properties": {
|
||||
"a": {
|
||||
"type": "integer",
|
||||
"minimum": -2147483648,
|
||||
"maximum": 2147483647,
|
||||
"description": "Field description a"
|
||||
},
|
||||
"b": {
|
||||
@@ -166,9 +162,7 @@ class InputSchemaTest {
|
||||
],
|
||||
"properties": {
|
||||
"e": {
|
||||
"type": "number",
|
||||
"minimum": 4.9E-324,
|
||||
"maximum": 1.7976931348623157E308
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"description": "Field description d"
|
||||
@@ -180,9 +174,7 @@ class InputSchemaTest {
|
||||
],
|
||||
"properties": {
|
||||
"e": {
|
||||
"type": "number",
|
||||
"minimum": 4.9E-324,
|
||||
"maximum": 1.7976931348623157E308
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"description": "Field description dOptional"
|
||||
@@ -211,8 +203,6 @@ class InputSchemaTest {
|
||||
"properties": {
|
||||
"a": {
|
||||
"type": "integer",
|
||||
"minimum": -2147483648,
|
||||
"maximum": 2147483647,
|
||||
"description": "Field description a"
|
||||
},
|
||||
"b": {
|
||||
@@ -240,9 +230,7 @@ class InputSchemaTest {
|
||||
],
|
||||
"properties": {
|
||||
"e": {
|
||||
"type": "number",
|
||||
"minimum": 4.9E-324,
|
||||
"maximum": 1.7976931348623157E308
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"description": "Field description d"
|
||||
@@ -254,9 +242,7 @@ class InputSchemaTest {
|
||||
],
|
||||
"properties": {
|
||||
"e": {
|
||||
"type": "number",
|
||||
"minimum": 4.9E-324,
|
||||
"maximum": 1.7976931348623157E308
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"description": "Field description dOptional"
|
||||
|
||||
@@ -33,8 +33,8 @@ class ReturnValueRenderingTest {
|
||||
Arguments.of(::returnShort,"12345"),
|
||||
Arguments.of(::returnByte,"123"),
|
||||
Arguments.of(::returnBoolean,"true"),
|
||||
Arguments.of(::returnChar,"\"a\""),
|
||||
Arguments.of(::returnString,"\"string\""),
|
||||
Arguments.of(::returnChar,"'a'"),
|
||||
Arguments.of(::returnString,"string"),
|
||||
Arguments.of(::returnFloat,"1.23458"),
|
||||
Arguments.of(::returnDouble,"1.2345"),
|
||||
Arguments.of(::returnVoid,"[success]"),
|
||||
|
||||
Reference in New Issue
Block a user