@@ -16,24 +16,48 @@ import (
1616)
1717
1818const (
19- EnvColor = "TESTDEEP_COLOR"
19+ // EnvColor is the name of the environment variable allowing to
20+ // enable/disable coloring feature.
21+ EnvColor = "TESTDEEP_COLOR"
22+ // EnvColorTestName is the name of the environment variable
23+ // containing the color of test names in error reports.
2024 EnvColorTestName = "TESTDEEP_COLOR_TEST_NAME"
21- EnvColorTitle = "TESTDEEP_COLOR_TITLE"
22- EnvColorOK = "TESTDEEP_COLOR_OK"
23- EnvColorBad = "TESTDEEP_COLOR_BAD"
25+ // EnvColorTitle is the name of the environment variable
26+ // containing the color of failure reason in error reports.
27+ EnvColorTitle = "TESTDEEP_COLOR_TITLE"
28+ // EnvColorOK is the name of the environment variable
29+ // containing the color of "expected" in error reports.
30+ EnvColorOK = "TESTDEEP_COLOR_OK"
31+ // EnvColorBad is the name of the environment variable
32+ // containing the color of "got" in error reports.
33+ EnvColorBad = "TESTDEEP_COLOR_BAD"
2434)
2535
2636var (
27- TestNameOn string
37+ // TestNameOn contains the ANSI color escape sequence to turn test
38+ // name color on.
39+ TestNameOn string
40+ // TestNameOff contains the ANSI color escape sequence to turn test
41+ // name color off.
2842 TestNameOff string
29- TitleOn string
30- TitleOff string
31- OKOn string
32- OKOnBold string
33- OKOff string
34- BadOn string
35- BadOnBold string
36- BadOff string
43+ // TitleOn contains the ANSI color escape sequence to turn title color on.
44+ TitleOn string
45+ // TitleOff contains the ANSI color escape sequence to turn title color off.
46+ TitleOff string
47+ // OKOn contains the ANSI color escape sequence to turn "expected" color on.
48+ OKOn string
49+ // OKOnBold contains the ANSI color escape sequence to turn
50+ // "expected" color and bold on.
51+ OKOnBold string
52+ // OKOff contains the ANSI color escape sequence to turn "expected" color off.
53+ OKOff string
54+ // BadOn contains the ANSI color escape sequence to turn "got" color on.
55+ BadOn string
56+ // BadOnBold contains the ANSI color escape sequence to turn "got"
57+ // color and bold on.
58+ BadOnBold string
59+ // BadOff contains the ANSI color escape sequence to turn "got" color off.
60+ BadOff string
3761)
3862
3963var initOnce sync.Once
0 commit comments