tests: remove stale resume helper · Entire
tests: remove stale resume helper
0398c0c→main·
pfleidi·1mo ago·1 file·+0 added/-16 removed
Drop an unused resume test helper left behind after pruning v1.1-specific resume coverage.
Sessions
a59356210b3bView transcript
[?
Collapse Checkpoint Metadata to v1Codex·GPT-5.5·2 steps](/content/gh/entireio/cli/session/019ed756-10c2-7381-85f9-e4e65afabf11#timeline-a59356210b3b/index.html)
Changes
1
cmd/entire/cli
Mresume_test.go-16
545 unmodified lines
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
549
550
551
545 unmodified lines
}
}
func commitResumeTrailer(t *testing.T, worktree *git.Worktree, repoRoot, fileName, commitMessage string) {
t.Helper()
if err := os.WriteFile(filepath.Join(repoRoot, fileName), []byte("feature content"), 0o644); err != nil {
t.Fatalf("write feature file: %v", err)
}
if _, err := worktree.Add(fileName); err != nil {
t.Fatalf("add feature file: %v", err)
}
if _, err := worktree.Commit(commitMessage, &git.CommitOptions{
Author: &object.Signature{Name: "Test", Email: "test@example.com"},
}); err != nil {
t.Fatalf("commit trailer: %v", err)
}
}
// TestResolveLatestCheckpoint verifies that resolveLatestCheckpoint returns the
// checkpoint with the newest CreatedAt, regardless of trailer order.
func TestResolveLatestCheckpoint(t *testing.T) {
Mcmd/entire/cli/resume_test.go-16