(t *testing.T)
| 770 | func TestTaskRuntimeStopUnknown(t *testing.T) { |
| 771 | rt := agent.NewAgentTaskRuntime() |
| 772 | result := rt.StopTask("missing", "main") |
| 773 | if result != "Error: Task not found." { |
| 774 | t.Fatalf("unexpected result: %#v", result) |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | func TestCoreQueryLoopAutoCompressionUsesAPIMaxTokensEightyPercentTrigger(t *testing.T) { |
| 779 | var requestBody map[string]any |
| 780 | server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 781 | bodyBytes, err := io.ReadAll(r.Body) |
nothing calls this directly
no test coverage detected