(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func TestTrafficCardViewContainsErrors(t *testing.T) { |
| 67 | card := NewTrafficCard([]float64{100}, []float64{10}, ChartScale{max: 200}, 10, 3, 5) |
| 68 | view := card.View(25) |
| 69 | |
| 70 | assert.Contains(t, view, "Traffic") |
| 71 | assert.Contains(t, view, "/min") |
| 72 | assert.Contains(t, view, "errors") |
| 73 | } |
| 74 | |
| 75 | func TestTrafficCardZeroErrors(t *testing.T) { |
| 76 | card := NewTrafficCard([]float64{100}, []float64{0}, ChartScale{max: 200}, 0, 3, 5) |
nothing calls this directly
no test coverage detected
searching dependent graphs…