(t *testing.T)
| 236 | } |
| 237 | |
| 238 | func TestPercentLabel(t *testing.T) { |
| 239 | t.Parallel() |
| 240 | |
| 241 | assert.Equal(t, "0%", percentLabel(0)) |
| 242 | assert.Equal(t, "50%", percentLabel(0.5)) |
| 243 | assert.Equal(t, "100%", percentLabel(1)) |
| 244 | assert.Equal(t, "0%", percentLabel(-0.5)) |
| 245 | assert.Equal(t, "100%", percentLabel(2)) |
| 246 | } |
| 247 | |
| 248 | func TestAgentPickerDetailsFixedSize(t *testing.T) { |
| 249 | t.Parallel() |
nothing calls this directly
no test coverage detected