MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestWorktreeSpinnerCancel

Function TestWorktreeSpinnerCancel

internal/tui/worktree_spinner_test.go:112–124  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

110}
111
112func 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
126func TestWorktreeSpinnerTick(t *testing.T) {
127 s := NewWorktreeSpinner()

Callers

nothing calls this directly

Calls 4

ConfigureMethod · 0.95
IsCancelledMethod · 0.95
CancelMethod · 0.95
NewWorktreeSpinnerFunction · 0.85

Tested by

no test coverage detected