MCPcopy Create free account
hub / github.com/git-bug/git-bug / TestLabelRGBAReverse

Function TestLabelRGBAReverse

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

Source from the content-addressed store, hash-verified

21}
22
23func TestLabelRGBAReverse(t *testing.T) {
24 rgba := Label("tset").Color()
25 expected := LabelColor{R: 63, G: 81, B: 181, A: 255}
26
27 require.Equal(t, expected, rgba)
28}
29
30func TestLabelRGBAEqual(t *testing.T) {
31 color1 := Label("test").Color()

Callers

nothing calls this directly

Calls 2

LabelTypeAlias · 0.70
ColorMethod · 0.65

Tested by

no test coverage detected