MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / TestTaskRuntimeStopUnknown

Function TestTaskRuntimeStopUnknown

test/agent_test.go:772–778  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

770func 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
778func 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)

Callers

nothing calls this directly

Calls 2

StopTaskMethod · 0.95
NewAgentTaskRuntimeFunction · 0.92

Tested by

no test coverage detected