提交 f38efb95 编写于 作者: M Medya Gh

Improved Style

上级 a2590ecd
...@@ -31,7 +31,7 @@ func TestIsValidEnv(t *testing.T) { ...@@ -31,7 +31,7 @@ func TestIsValidEnv(t *testing.T) {
{"NOPROXY", false}, {"NOPROXY", false},
} }
for _, tc := range testCases { for _, tc := range testCases {
t.Run(fmt.Sprintf("%s", tc.env), func(t *testing.T) { t.Run(tc.env, func(t *testing.T) {
got := isValidEnv(tc.env) got := isValidEnv(tc.env)
if got != tc.want { if got != tc.want {
t.Errorf("isValidEnv(\"%v\") got %v; want %v", tc.env, got, tc.want) t.Errorf("isValidEnv(\"%v\") got %v; want %v", tc.env, got, tc.want)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册