(t *testing.T)
| 110 | } |
| 111 | |
| 112 | func TestWorktreeSpinnerCancel(t *testing.T) { |
| 113 | s := NewWorktreeSpinner() |
| 114 | s.Configure("auth", "chief/auth", "main", ".chief/worktrees/auth/", "") |
| 115 | |
| 116 | if s.IsCancelled() { |
| 117 | t.Error("should not be cancelled initially") |
| 118 | } |
| 119 | |
| 120 | s.Cancel() |
| 121 | if !s.IsCancelled() { |
| 122 | t.Error("should be cancelled after Cancel()") |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | func TestWorktreeSpinnerTick(t *testing.T) { |
| 127 | s := NewWorktreeSpinner() |
nothing calls this directly
no test coverage detected