fix(lint): 修复 golangci-lint 检查问题

- 格式化代码 (gofmt)
- 修复 rows.Close() 返回值未检查 (errcheck)
- 删除未使用的 usage_clamp.go 文件 (unused)
- 删除临时测试目录
This commit is contained in:
ianshaw
2026-01-03 06:57:08 -08:00
parent 75e7c3dd06
commit 519b0b245a
7 changed files with 73 additions and 108 deletions

View File

@@ -8,11 +8,11 @@ import (
// TestBuildParts_ThinkingBlockWithoutSignature 测试thinking block无signature时的处理
func TestBuildParts_ThinkingBlockWithoutSignature(t *testing.T) {
tests := []struct {
name string
content string
name string
content string
allowDummyThought bool
expectedParts int
description string
expectedParts int
description string
}{
{
name: "Claude model - drop thinking without signature",