(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestSpinnerStopWithMessage(t *testing.T) { |
| 68 | spinner := NewSpinner("Processing...") |
| 69 | |
| 70 | // This should not panic even if spinner is disabled |
| 71 | spinner.Start() |
| 72 | spinner.StopWithMessage("✓ Done successfully") |
| 73 | |
| 74 | // Test calling StopWithMessage on a spinner that was never started |
| 75 | spinner2 := NewSpinner("Another test") |
| 76 | spinner2.StopWithMessage("✓ Completed") |
| 77 | } |
| 78 | |
| 79 | func TestSpinnerMultipleStartStop(t *testing.T) { |
| 80 | spinner := NewSpinner("Test message") |
nothing calls this directly
no test coverage detected