mirror of
https://gitee.com/wanwujie/sub2api
synced 2026-04-20 06:44:44 +08:00
chore: gofmt antigravity gateway tests
This commit is contained in:
@@ -190,8 +190,8 @@ func TestAntigravityGatewayService_Forward_PromptTooLong(t *testing.T) {
|
|||||||
|
|
||||||
svc := &AntigravityGatewayService{
|
svc := &AntigravityGatewayService{
|
||||||
settingService: NewSettingService(&antigravitySettingRepoStub{}, &config.Config{Gateway: config.GatewayConfig{MaxLineSize: defaultMaxLineSize}}),
|
settingService: NewSettingService(&antigravitySettingRepoStub{}, &config.Config{Gateway: config.GatewayConfig{MaxLineSize: defaultMaxLineSize}}),
|
||||||
tokenProvider: &AntigravityTokenProvider{},
|
tokenProvider: &AntigravityTokenProvider{},
|
||||||
httpUpstream: &httpUpstreamStub{resp: resp},
|
httpUpstream: &httpUpstreamStub{resp: resp},
|
||||||
}
|
}
|
||||||
|
|
||||||
account := &Account{
|
account := &Account{
|
||||||
@@ -477,8 +477,8 @@ func TestAntigravityGatewayService_Forward_BillsWithMappedModel(t *testing.T) {
|
|||||||
|
|
||||||
svc := &AntigravityGatewayService{
|
svc := &AntigravityGatewayService{
|
||||||
settingService: NewSettingService(&antigravitySettingRepoStub{}, &config.Config{Gateway: config.GatewayConfig{MaxLineSize: defaultMaxLineSize}}),
|
settingService: NewSettingService(&antigravitySettingRepoStub{}, &config.Config{Gateway: config.GatewayConfig{MaxLineSize: defaultMaxLineSize}}),
|
||||||
tokenProvider: &AntigravityTokenProvider{},
|
tokenProvider: &AntigravityTokenProvider{},
|
||||||
httpUpstream: &httpUpstreamStub{resp: resp},
|
httpUpstream: &httpUpstreamStub{resp: resp},
|
||||||
}
|
}
|
||||||
|
|
||||||
const mappedModel = "gemini-3-pro-high"
|
const mappedModel = "gemini-3-pro-high"
|
||||||
@@ -529,8 +529,8 @@ func TestAntigravityGatewayService_ForwardGemini_BillsWithMappedModel(t *testing
|
|||||||
|
|
||||||
svc := &AntigravityGatewayService{
|
svc := &AntigravityGatewayService{
|
||||||
settingService: NewSettingService(&antigravitySettingRepoStub{}, &config.Config{Gateway: config.GatewayConfig{MaxLineSize: defaultMaxLineSize}}),
|
settingService: NewSettingService(&antigravitySettingRepoStub{}, &config.Config{Gateway: config.GatewayConfig{MaxLineSize: defaultMaxLineSize}}),
|
||||||
tokenProvider: &AntigravityTokenProvider{},
|
tokenProvider: &AntigravityTokenProvider{},
|
||||||
httpUpstream: &httpUpstreamStub{resp: resp},
|
httpUpstream: &httpUpstreamStub{resp: resp},
|
||||||
}
|
}
|
||||||
|
|
||||||
const mappedModel = "gemini-3-pro-high"
|
const mappedModel = "gemini-3-pro-high"
|
||||||
|
|||||||
Reference in New Issue
Block a user