(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func TestCloneAnimationBuildFrame(t *testing.T) { |
| 74 | a := NewCloneAnimation(&bytes.Buffer{}, "very-very-long-repository-name-that-needs-truncation") |
| 75 | frame := a.buildFrame(50) |
| 76 | |
| 77 | checks := []string{"50%", "..", "🗺️"} |
| 78 | for _, check := range checks { |
| 79 | if !strings.Contains(frame, check) { |
| 80 | t.Fatalf("expected frame to contain %q, got %q", check, frame) |
| 81 | } |
| 82 | } |
| 83 | } |
nothing calls this directly
no test coverage detected