Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
dd67d53d
Commit
dd67d53d
authored
Dec 31, 2025
by
ianshaw
Browse files
fix(test): 修复测试中的类型引用
- 将 ClaudeCustomToolSpec 改为 CustomToolSpec - 与 claude_types.go 中的实际类型定义保持一致
parent
eee5c0ac
Changes
1
Show whitespace changes
Inline
Side-by-side
backend/internal/pkg/antigravity/request_transformer_test.go
View file @
dd67d53d
...
...
@@ -96,7 +96,7 @@ func TestBuildTools_CustomTypeTools(t *testing.T) {
{
Type
:
"custom"
,
Name
:
"mcp_tool"
,
Custom
:
&
Claude
CustomToolSpec
{
Custom
:
&
CustomToolSpec
{
Description
:
"MCP tool description"
,
InputSchema
:
map
[
string
]
any
{
"type"
:
"object"
,
...
...
@@ -121,7 +121,7 @@ func TestBuildTools_CustomTypeTools(t *testing.T) {
{
Type
:
"custom"
,
Name
:
"custom_tool"
,
Custom
:
&
Claude
CustomToolSpec
{
Custom
:
&
CustomToolSpec
{
Description
:
"Custom tool"
,
InputSchema
:
map
[
string
]
any
{
"type"
:
"object"
},
},
...
...
@@ -148,7 +148,7 @@ func TestBuildTools_CustomTypeTools(t *testing.T) {
{
Type
:
"custom"
,
Name
:
"invalid_custom"
,
Custom
:
&
Claude
CustomToolSpec
{
Custom
:
&
CustomToolSpec
{
Description
:
"Invalid"
,
// InputSchema 为 nil
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment