MCPcopy Create free account
hub / github.com/JordanCoin/codemap / TestCloneAnimationBuildFrame

Function TestCloneAnimationBuildFrame

render/clone_animation_test.go:73–83  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func 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}

Callers

nothing calls this directly

Calls 2

buildFrameMethod · 0.95
NewCloneAnimationFunction · 0.85

Tested by

no test coverage detected