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

Function TestTaskRuntimeCleanupScopeRemovesDescendants

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

Source from the content-addressed store, hash-verified

1041 rt.RegisterForegroundTask("child-1", "", "ephemeral", "child", "desc", "Explore")
1042 rt.RegisterForegroundTask("grandchild-1", "child-1", "child-1", "grand", "desc", "Explore")
1043 report := rt.CleanupScope("ephemeral")
1044 if report["tasks_removed"] != 2 {
1045 t.Fatalf("expected two removed tasks, got %#v", report)
1046 }
1047 if record := rt.GetTask("child-1", "ephemeral"); record != nil {
1048 t.Fatalf("expected child removed, got %#v", record)
1049 }
1050}
1051
1052func TestWorktreeCreateMatchesPythonLifecycle(t *testing.T) {
1053 if _, err := exec.LookPath("git"); err != nil {
1054 t.Skip("git not installed")
1055 }
1056 repo := t.TempDir()
1057 runGit(t, repo, "init")

Callers

nothing calls this directly

Calls 4

CleanupScopeMethod · 0.95
GetTaskMethod · 0.95
NewAgentTaskRuntimeFunction · 0.92

Tested by

no test coverage detected