(t *testing.T)
| 115 | } |
| 116 | |
| 117 | func TestAnimationComponentAddDefaultAnimation(t *testing.T) { |
| 118 | drawables := []Drawable{ |
| 119 | &TestDrawable{0}, |
| 120 | &TestDrawable{1}, |
| 121 | &TestDrawable{2}, |
| 122 | } |
| 123 | ac := NewAnimationComponent(drawables, 0.1) |
| 124 | def := &Animation{ |
| 125 | Name: "default", |
| 126 | Frames: []int{0, 1, 2}, |
| 127 | } |
| 128 | ac.AddDefaultAnimation(def) |
| 129 | if ac.def.Name != def.Name { |
| 130 | t.Error("Default animation was not set by AddDefaultAnimation") |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | func TestAnimationComponentIntegration(t *testing.T) { |
| 135 | drawables := []Drawable{ |
nothing calls this directly
no test coverage detected