MCPcopy Index your code
hub / github.com/git-bug/git-bug / TestLabelRGBASimilar

Function TestLabelRGBASimilar

entities/common/label_test.go:16–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14}
15
16func TestLabelRGBASimilar(t *testing.T) {
17 rgba := Label("test2").Color()
18 expected := LabelColor{R: 3, G: 169, B: 244, A: 255}
19
20 require.Equal(t, expected, rgba)
21}
22
23func TestLabelRGBAReverse(t *testing.T) {
24 rgba := Label("tset").Color()

Callers

nothing calls this directly

Calls 2

LabelTypeAlias · 0.70
ColorMethod · 0.65

Tested by

no test coverage detected