INNER CODE UNIT · Go
TestApply
hidetatz/kubecolor · color/color_test.go:7
func TestApply(t *testing.T) {
val := "test"
expected := "\x1b[31mtest\x1b[0m"
if applied := Apply(val, Red); applied != expected {
t.Fatalf("failed: %v", applied)
}
}
INNER CODE UNIT · Go
hidetatz/kubecolor · color/color_test.go:7
func TestApply(t *testing.T) {
val := "test"
expected := "\x1b[31mtest\x1b[0m"
if applied := Apply(val, Red); applied != expected {
t.Fatalf("failed: %v", applied)
}
}