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
cbb4d854
Commit
cbb4d854
authored
Feb 09, 2026
by
erio
Browse files
fix: check type assertion in test to satisfy errcheck linter
parent
35598d56
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/gateway_request_test.go
View file @
cbb4d854
...
@@ -155,7 +155,8 @@ func TestParseGatewayRequest_AnthropicIgnoresGeminiFields(t *testing.T) {
...
@@ -155,7 +155,8 @@ func TestParseGatewayRequest_AnthropicIgnoresGeminiFields(t *testing.T) {
require
.
True
(
t
,
parsed
.
HasSystem
)
require
.
True
(
t
,
parsed
.
HasSystem
)
require
.
Equal
(
t
,
"real system"
,
parsed
.
System
)
require
.
Equal
(
t
,
"real system"
,
parsed
.
System
)
require
.
Len
(
t
,
parsed
.
Messages
,
1
)
require
.
Len
(
t
,
parsed
.
Messages
,
1
)
msg
:=
parsed
.
Messages
[
0
]
.
(
map
[
string
]
any
)
msg
,
ok
:=
parsed
.
Messages
[
0
]
.
(
map
[
string
]
any
)
require
.
True
(
t
,
ok
)
require
.
Equal
(
t
,
"real content"
,
msg
[
"content"
])
require
.
Equal
(
t
,
"real content"
,
msg
[
"content"
])
}
}
...
...
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