mirror of
https://github.com/taigrr/colorhash.git
synced 2026-04-01 18:58:45 -07:00
test: improve coverage to 98.2%, add staticcheck to CI (#7)
* test: improve coverage to 98.2%, add staticcheck to CI - Fix comment typos (Intensty → Intensity) - Add tests for createStringerPalette modes (background fill, smart mode) - Add tests for ColorString variants, BytesToColor determinism - Add tests for GetBackgroundColor mid-tone edge case - Add tests for GenerateOKLCHPalette negative/large inputs - Add Go 1.25 to CI matrix for compatibility testing - Add staticcheck lint step to CI - Fix goimports formatting in hash_test.go * fix(ci): remove Go 1.25 from matrix (go.mod requires 1.26)
This commit is contained in:
@@ -52,7 +52,7 @@ var (
|
||||
OnCyan = ColorString("\033[46m%s\033[0m")
|
||||
OnWhite = ColorString("\033[47m%s\033[0m")
|
||||
|
||||
// High Intensty
|
||||
// High Intensity
|
||||
IBlack = ColorString("\033[0;90m%s\033[0m")
|
||||
IRed = ColorString("\033[0;91m%s\033[0m")
|
||||
IGreen = ColorString("\033[0;92m%s\033[0m")
|
||||
@@ -62,7 +62,7 @@ var (
|
||||
ICyan = ColorString("\033[0;96m%s\033[0m")
|
||||
IWhite = ColorString("\033[0;97m%s\033[0m")
|
||||
|
||||
// Bold High Intensty
|
||||
// Bold High Intensity
|
||||
BIBlack = ColorString("\033[1;90m%s\033[0m")
|
||||
BIRed = ColorString("\033[1;91m%s\033[0m")
|
||||
BIGreen = ColorString("\033[1;92m%s\033[0m")
|
||||
@@ -72,7 +72,7 @@ var (
|
||||
BICyan = ColorString("\033[1;96m%s\033[0m")
|
||||
BIWhite = ColorString("\033[1;97m%s\033[0m")
|
||||
|
||||
// High Intensty backgrounds
|
||||
// High Intensity backgrounds
|
||||
OnIBlack = ColorString("\033[0;100m%s\033[0m")
|
||||
OnIRed = ColorString("\033[0;101m%s\033[0m")
|
||||
OnIGreen = ColorString("\033[0;102m%s\033[0m")
|
||||
|
||||
Reference in New Issue
Block a user