From 8fa0bd1f1cffe1e00d79fa11361a4ee5ffd97478 Mon Sep 17 00:00:00 2001 From: LiKe Date: Sat, 15 Apr 2023 21:46:37 +0800 Subject: [PATCH] fix(goctl): test field (#3114) --- tools/goctl/test/test_test.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tools/goctl/test/test_test.go b/tools/goctl/test/test_test.go index 807037c5..250f895e 100644 --- a/tools/goctl/test/test_test.go +++ b/tools/goctl/test/test_test.go @@ -16,13 +16,13 @@ func TestExecutor_Run(t *testing.T) { }, { Name: "snake_case", - input: "A_B_C", - want: "a_b_c", + Input: "A_B_C", + Want: "a_b_c", }, { Name: "camel_case", - input: "AaBbCc", - want: "aabbcc", + Input: "AaBbCc", + Want: "aabbcc", }, }...) executor.Run(t, func(s string) string { @@ -39,17 +39,17 @@ func TestExecutor_RunE(t *testing.T) { }, { Name: "snake_case", - input: "A_B_C", - want: "a_b_c", + Input: "A_B_C", + Want: "a_b_c", }, { Name: "camel_case", - input: "AaBbCc", - want: "aabbcc", + Input: "AaBbCc", + Want: "aabbcc", }, { Name: "invalid_input", - input: "😄", + Input: "😄", E: dummyError, }, }...) @@ -75,17 +75,17 @@ func TestWithComparison(t *testing.T) { }, { Name: "snake_case", - input: "A_B_C", - want: "a_b_c", + Input: "A_B_C", + Want: "a_b_c", }, { Name: "camel_case", - input: "AaBbCc", - want: "aabbcc", + Input: "AaBbCc", + Want: "aabbcc", }, { Name: "invalid_input", - input: "😄", + Input: "😄", E: dummyError, }, }...)