(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestAnimationManagerUpdateMessage(t *testing.T) { |
| 93 | am := NewAnimationManager() |
| 94 | am.ShowThinkingAnimation("Mensagem Inicial") |
| 95 | time.Sleep(100 * time.Millisecond) |
| 96 | |
| 97 | am.UpdateMessage("Mensagem Atualizada") |
| 98 | time.Sleep(100 * time.Millisecond) |
| 99 | |
| 100 | am.mu.Lock() |
| 101 | currentMsg := am.currentMessage |
| 102 | am.mu.Unlock() |
| 103 | |
| 104 | if currentMsg != "Mensagem Atualizada" { |
| 105 | t.Errorf("Expected current message to be 'Mensagem Atualizada', got '%s'", currentMsg) |
| 106 | } |
| 107 | |
| 108 | am.StopThinkingAnimation() |
| 109 | } |
| 110 | |
| 111 | func TestTypewriterEffectSyncsOutput(t *testing.T) { |
| 112 | logger, _ := zap.NewDevelopment() |
nothing calls this directly
no test coverage detected