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

Function TestLabelRGBA

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

Source from the content-addressed store, hash-verified

7)
8
9func TestLabelRGBA(t *testing.T) {
10 rgba := Label("test1").Color()
11 expected := LabelColor{R: 0, G: 150, B: 136, A: 255}
12
13 require.Equal(t, expected, rgba)
14}
15
16func TestLabelRGBASimilar(t *testing.T) {
17 rgba := Label("test2").Color()

Callers

nothing calls this directly

Calls 2

LabelTypeAlias · 0.70
ColorMethod · 0.65

Tested by

no test coverage detected