]> git.giacomolli.uk - onechat/blobdiff - compactor_test.go
Check Go names and declarations with revive
[onechat] / compactor_test.go
index 8bdf45c68d7fcd308a8ad7a173e0deb81908641c..f4c51f4af12621e3b64ffd853955a1afa119f773 100644 (file)
@@ -209,7 +209,7 @@ func TestCompactorFailsWithoutALine(t *testing.T) {
        }{
                {
                        name: "failed call",
-                       reply: func(w http.ResponseWriter, call ModelFakeCall) {
+                       reply: func(w http.ResponseWriter, _ ModelFakeCall) {
                                w.WriteHeader(http.StatusInternalServerError)
                                _, _ = io.WriteString(w, "down")
                        },
@@ -217,7 +217,7 @@ func TestCompactorFailsWithoutALine(t *testing.T) {
                },
                {
                        name: "tool call and no text",
-                       reply: func(w http.ResponseWriter, call ModelFakeCall) {
+                       reply: func(w http.ResponseWriter, _ ModelFakeCall) {
                                modelWriteEvents(w, modelCompletedEvent([]any{map[string]any{"type": "function_call", "name": "zoom", "arguments": "{}"}}, 100, 0, 5))
                        },
                        want: "no line",