MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / BenchmarkHEXToRGB

Function BenchmarkHEXToRGB

conversion/rgbhex_test.go:29–33  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

27}
28
29func BenchmarkHEXToRGB(b *testing.B) {
30 for i := 0; i < b.N; i++ {
31 _, _, _ = HEXToRGB(0xdeadbe)
32 }
33}
34
35func TestRGBToHEX(t *testing.T) {
36 for i := 0; i < len(RGB); i++ {

Callers

nothing calls this directly

Calls 1

HEXToRGBFunction · 0.85

Tested by

no test coverage detected