Skip to content

Commit 2e7cda4

Browse files
committed
fix fmt
1 parent c7ac669 commit 2e7cda4

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

backend/modules/evaluation/application/wire.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ func InitEvalTargetApplication(ctx context.Context,
269269
executeClient promptexecuteservice.Client,
270270
authClient authservice.Client,
271271
cmdable redis.Cmdable,
272-
meter metrics.Meter) evaluation.EvalTargetService {
272+
meter metrics.Meter,
273+
) evaluation.EvalTargetService {
273274
wire.Build(
274275
evalTargetSet,
275276
)

backend/modules/evaluation/domain/service/evaluator_impl_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ func TestEvaluatorServiceImpl_RunEvaluator_DisableTracing(t *testing.T) {
17971797
mockIDGen := idgenmocks.NewMockIIDGenerator(ctrl)
17981798
mockEvaluatorRecordRepo := repomocks.NewMockIEvaluatorRecordRepo(ctrl)
17991799
mockEvaluatorSourceService := mocks.NewMockEvaluatorSourceService(ctrl)
1800-
1800+
18011801
s := &EvaluatorServiceImpl{
18021802
evaluatorRepo: mockEvaluatorRepo,
18031803
limiter: mockLimiter,
@@ -1890,4 +1890,4 @@ func TestEvaluatorServiceImpl_RunEvaluator_DisableTracing(t *testing.T) {
18901890
assert.Equal(t, defaultRunStatus, record.Status)
18911891
})
18921892
}
1893-
}
1893+
}

backend/modules/evaluation/domain/service/evaluator_source_prompt_impl_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -940,10 +940,10 @@ func TestEvaluatorSourcePromptServiceImpl_Run_DisableTracing(t *testing.T) {
940940
}
941941

942942
tests := []struct {
943-
name string
944-
disableTracing bool
945-
setupMocks func()
946-
checkTraceID func(t *testing.T, traceID string)
943+
name string
944+
disableTracing bool
945+
setupMocks func()
946+
checkTraceID func(t *testing.T, traceID string)
947947
}{
948948
{
949949
name: "disableTracing=true时不创建Span",
@@ -985,9 +985,9 @@ func TestEvaluatorSourcePromptServiceImpl_Run_DisableTracing(t *testing.T) {
985985
// 由于输入验证失败,验证错误状态
986986
assert.Equal(t, entity.EvaluatorRunStatusFail, status)
987987
assert.NotNil(t, output)
988-
988+
989989
// 验证追踪ID的生成情况
990990
tt.checkTraceID(t, traceID)
991991
})
992992
}
993-
}
993+
}

0 commit comments

Comments
 (0)