(t *testing.T)
| 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 | |
| 1052 | func 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") |
nothing calls this directly
no test coverage detected