Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: corrected some test case names #61

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ func TestHelp_AddOpts_withWrapping(t *testing.T) {
assert.False(t, exists)
}

func TestHelp_withMargins_andAddOpts(t *testing.T) {
func TestHelp_NewHelpWithMargins_and_AddOpts(t *testing.T) {
termCols := linebreak.TermCols()

help := cliargs.NewHelpWithMargins(4, 2)
Expand Down Expand Up @@ -602,7 +602,7 @@ func TestHelp_withMargins_andAddOpts(t *testing.T) {
assert.False(t, exists)
}

func TestHelp_addOptsWithMargins(t *testing.T) {
func TestHelp_AddOptsWithMargins(t *testing.T) {
termCols := linebreak.TermCols()

help := cliargs.NewHelp()
Expand Down Expand Up @@ -634,7 +634,7 @@ func TestHelp_addOptsWithMargins(t *testing.T) {
assert.False(t, exists)
}

func TestHelp_addOptsWithMargins_bothOfNewMethod_andAddTextWithMargins(t *testing.T) {
func TestHelp_AddOptsWithMargins_bothOfNewMethod_andAddTextWithMargins(t *testing.T) {
termCols := linebreak.TermCols()

help := cliargs.NewHelpWithMargins(4, 2)
Expand Down Expand Up @@ -666,7 +666,7 @@ func TestHelp_addOptsWithMargins_bothOfNewMethod_andAddTextWithMargins(t *testin
assert.False(t, exists)
}

func TestHelp_addOpsWithIndent_ifIndentIsLongerThanTitle(t *testing.T) {
func TestHelp_AddOptsWithIndent_ifIndentIsLongerThanTitle(t *testing.T) {
termCols := linebreak.TermCols()

help := cliargs.NewHelp()
Expand Down Expand Up @@ -697,7 +697,7 @@ func TestHelp_addOpsWithIndent_ifIndentIsLongerThanTitle(t *testing.T) {
assert.False(t, exists)
}

func TestHelp_addOpsWithIndent_ifIndentIsShorterThanTitle(t *testing.T) {
func TestHelp_AddOptsWithIndent_ifIndentIsShorterThanTitle(t *testing.T) {
termCols := linebreak.TermCols()

help := cliargs.NewHelp()
Expand Down Expand Up @@ -728,7 +728,7 @@ func TestHelp_addOpsWithIndent_ifIndentIsShorterThanTitle(t *testing.T) {
assert.Equal(t, line, "")
}

func TestHelp_addOpsWithIndentAndMargins(t *testing.T) {
func TestHelp_AddOptsWithIndentAndMargins(t *testing.T) {
termCols := linebreak.TermCols()

help := cliargs.NewHelp()
Expand Down Expand Up @@ -759,7 +759,7 @@ func TestHelp_addOpsWithIndentAndMargins(t *testing.T) {
assert.Equal(t, line, "")
}

func TestHelp_addOpts_ifOptsAreMultiple(t *testing.T) {
func TestHelp_AddOpts_ifOptsAreMultiple(t *testing.T) {
termCols := linebreak.TermCols()

help := cliargs.NewHelp()
Expand Down Expand Up @@ -808,7 +808,7 @@ func TestHelp_addOpts_ifOptsAreMultiple(t *testing.T) {
assert.Equal(t, line, "")
}

func TestHelp_addOpts_ifNamesAreEmptyAndStoreKeyIsSpecified(t *testing.T) {
func TestHelp_AddOpts_ifNamesAreEmptyAndStoreKeyIsSpecified(t *testing.T) {
help := cliargs.NewHelp()

help.AddOpts([]cliargs.OptCfg{
Expand All @@ -833,7 +833,7 @@ func TestHelp_addOpts_ifNamesAreEmptyAndStoreKeyIsSpecified(t *testing.T) {
assert.Equal(t, line, "")
}

func TestHelp_addOpts_ifStoreKeyIsAnyOption(t *testing.T) {
func TestHelp_AddOpts_ifStoreKeyIsAnyOption(t *testing.T) {
help := cliargs.NewHelp()

help.AddOpts([]cliargs.OptCfg{
Expand All @@ -858,7 +858,7 @@ func TestHelp_addOpts_ifStoreKeyIsAnyOption(t *testing.T) {
assert.Equal(t, line, "")
}

func TestHelp_addOpts_ifFirstElementOfNamesIsAnyOption(t *testing.T) {
func TestHelp_AddOpts_ifFirstElementOfNamesIsAnyOption(t *testing.T) {
help := cliargs.NewHelp()

help.AddOpts([]cliargs.OptCfg{
Expand All @@ -883,7 +883,7 @@ func TestHelp_addOpts_ifFirstElementOfNamesIsAnyOption(t *testing.T) {
assert.Equal(t, line, "")
}

func TestHelp_addTextWithIndent_ifIndentIsLongerThanLineWidth(t *testing.T) {
func TestHelp_AddOptsWithIndent_ifIndentIsLongerThanLineWidth(t *testing.T) {
termCols := linebreak.TermCols()

help := cliargs.NewHelp()
Expand All @@ -910,7 +910,7 @@ func TestHelp_addTextWithIndent_ifIndentIsLongerThanLineWidth(t *testing.T) {
assert.Equal(t, line, "")
}

func TestHelp_addText_withMargins_ifSumOfMarginsAreEqualToLineWidth(t *testing.T) {
func TestHelp_AddOptsWithMargins_ifSumOfMarginsAreEqualToLineWidth(t *testing.T) {
termCols := linebreak.TermCols()

help := cliargs.NewHelp()
Expand All @@ -937,7 +937,7 @@ func TestHelp_addText_withMargins_ifSumOfMarginsAreEqualToLineWidth(t *testing.T
assert.Equal(t, line, "")
}

func TestHelp_addOpts_ifNamesContainsEmptyStrings(t *testing.T) {
func TestHelp_AddOpts_ifNamesContainsEmptyStrings(t *testing.T) {
help := cliargs.NewHelp()

help.AddOpts([]cliargs.OptCfg{
Expand Down
Loading