Skip to content

Commit

Permalink
Remove unused utils.Capitalize func
Browse files Browse the repository at this point in the history
  • Loading branch information
zmb3 committed Apr 24, 2022
1 parent c40d6dc commit cc4d4df
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 60 deletions.
40 changes: 0 additions & 40 deletions lib/utils/cap.go

This file was deleted.

20 changes: 0 additions & 20 deletions lib/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,6 @@ func TestMain(m *testing.M) {
os.Exit(m.Run())
}

// TestCapitalize tests capitalize function
func TestCapitalize(t *testing.T) {
t.Parallel()
type testCase struct {
name string
in string
out string
}
cases := []testCase{
{name: "capitalize text", in: "hello there", out: "Hello there"},
{name: "ignore whitespace-only", in: " ", out: " "},
{name: "ignore empty", in: "", out: ""},
}
for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
require.Equal(t, tc.out, Capitalize(tc.in))
})
}
}

// TestLinear tests retry logic
func TestLinear(t *testing.T) {
t.Parallel()
Expand Down

0 comments on commit cc4d4df

Please sign in to comment.