]> git.giacomolli.uk - onechat/blobdiff - compactor_test.go
Test the commit message wrapping boundaries
[onechat] / compactor_test.go
index baa7f57ed7c6c88db4342403ea8f2093b793c5f5..493402551e6d8bf7fa8697b96d3ef27476d815c1 100644 (file)
@@ -129,7 +129,7 @@ func TestCompactorFailsWithoutALine(t *testing.T) {
                want  string
        }{
                {
                want  string
        }{
                {
-                       name: "failed call",
+                       name: "reports the model call failure",
                        reply: func(w http.ResponseWriter, _ ModelFakeCall) {
                                w.WriteHeader(http.StatusInternalServerError)
 
                        reply: func(w http.ResponseWriter, _ ModelFakeCall) {
                                w.WriteHeader(http.StatusInternalServerError)
 
@@ -138,7 +138,7 @@ func TestCompactorFailsWithoutALine(t *testing.T) {
                        want: "HTTP 500",
                },
                {
                        want: "HTTP 500",
                },
                {
-                       name: "tool call and no text",
+                       name: "refuses a response without summary text",
                        reply: func(w http.ResponseWriter, _ ModelFakeCall) {
                                modelWriteEvents(w, modelCompletedEvent([]any{map[string]any{"type": "function_call", "name": "zoom", "arguments": "{}"}}, 100, 0, 5))
                        },
                        reply: func(w http.ResponseWriter, _ ModelFakeCall) {
                                modelWriteEvents(w, modelCompletedEvent([]any{map[string]any{"type": "function_call", "name": "zoom", "arguments": "{}"}}, 100, 0, 5))
                        },