1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 14:26:46 +00:00

chore: auto format code

This commit is contained in:
Tw93
2026-01-14 03:59:21 +00:00
parent 7089ce69d1
commit 00a712711e
3 changed files with 12 additions and 12 deletions

View File

@@ -62,14 +62,14 @@ func TestColorizeTempThresholds(t *testing.T) {
temp float64
expected string
}{
{temp: 30.0, expected: "30.0"}, // Normal - should use okStyle (green)
{temp: 55.9, expected: "55.9"}, // Just below warning threshold
{temp: 56.0, expected: "56.0"}, // Warning threshold - should use warnStyle (yellow)
{temp: 65.0, expected: "65.0"}, // Mid warning range
{temp: 75.9, expected: "75.9"}, // Just below danger threshold
{temp: 76.0, expected: "76.0"}, // Danger threshold - should use dangerStyle (red)
{temp: 90.0, expected: "90.0"}, // High temperature
{temp: 0.0, expected: "0.0"}, // Edge case: zero
{temp: 30.0, expected: "30.0"}, // Normal - should use okStyle (green)
{temp: 55.9, expected: "55.9"}, // Just below warning threshold
{temp: 56.0, expected: "56.0"}, // Warning threshold - should use warnStyle (yellow)
{temp: 65.0, expected: "65.0"}, // Mid warning range
{temp: 75.9, expected: "75.9"}, // Just below danger threshold
{temp: 76.0, expected: "76.0"}, // Danger threshold - should use dangerStyle (red)
{temp: 90.0, expected: "90.0"}, // High temperature
{temp: 0.0, expected: "0.0"}, // Edge case: zero
}
for _, tt := range tests {