(t *testing.T)
| 239 | } |
| 240 | |
| 241 | func TestColorAppendText(t *testing.T) { |
| 242 | input := ColorRedOrangeBlue |
| 243 | expected := "red-orange-blue" |
| 244 | |
| 245 | a, err1 := input.AppendText(nil) |
| 246 | b, err2 := input.MarshalText() |
| 247 | require.NoError(t, err1, "AppendText should not return an error") |
| 248 | require.NoError(t, err2, "MarshalText should not return an error") |
| 249 | assert.Equal(t, expected, string(a), "AppendText should return the correct string") |
| 250 | assert.Equal(t, expected, string(b), "MarshalText should return the correct string") |
| 251 | assert.Equal(t, expected, input.String(), "String should return the correct string") |
| 252 | } |
| 253 | |
| 254 | func BenchmarkColorParse(b *testing.B) { |
| 255 | knownItems := []string{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…