From 615bbf45b968b2c5ad9517b100440f3811f33b22 Mon Sep 17 00:00:00 2001 From: wujunze Date: Sun, 4 Sep 2022 23:16:04 +0800 Subject: [PATCH] feat: conv file test coverage 100% --- .gitignore | 1 + core/util/xstring/conv_test.go | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index d9ef6c5a..d59ab30b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ node_modules yarn.lock package-lock.json .DS_Store +vendor \ No newline at end of file diff --git a/core/util/xstring/conv_test.go b/core/util/xstring/conv_test.go index dce72a99..7f2a3311 100644 --- a/core/util/xstring/conv_test.go +++ b/core/util/xstring/conv_test.go @@ -54,3 +54,14 @@ func TestToCamelCase(t *testing.T) { }) } } + +func TestToCamelCaseLess2(t *testing.T) { + str := "a" + + want := "a" + + if got := ToCamelCase(str); got != want { + t.Errorf("ToCamelCase() = %v, want %v", got, want) + } + +}