Skip to content

Commit

Permalink
feat: conv file test coverage 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
wujunze committed Sep 4, 2022
1 parent f1217e4 commit 615bbf4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ node_modules
yarn.lock
package-lock.json
.DS_Store
vendor
11 changes: 11 additions & 0 deletions core/util/xstring/conv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

}

0 comments on commit 615bbf4

Please sign in to comment.