Skip to content

Commit b30bfea

Browse files
committed
test: corrected some test case names
1 parent 982014e commit b30bfea

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

help_test.go

+13-13
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ func TestHelp_AddOpts_withWrapping(t *testing.T) {
570570
assert.False(t, exists)
571571
}
572572

573-
func TestHelp_withMargins_andAddOpts(t *testing.T) {
573+
func TestHelp_NewHelpWithMargins_and_AddOpts(t *testing.T) {
574574
termCols := linebreak.TermCols()
575575

576576
help := cliargs.NewHelpWithMargins(4, 2)
@@ -602,7 +602,7 @@ func TestHelp_withMargins_andAddOpts(t *testing.T) {
602602
assert.False(t, exists)
603603
}
604604

605-
func TestHelp_addOptsWithMargins(t *testing.T) {
605+
func TestHelp_AddOptsWithMargins(t *testing.T) {
606606
termCols := linebreak.TermCols()
607607

608608
help := cliargs.NewHelp()
@@ -634,7 +634,7 @@ func TestHelp_addOptsWithMargins(t *testing.T) {
634634
assert.False(t, exists)
635635
}
636636

637-
func TestHelp_addOptsWithMargins_bothOfNewMethod_andAddTextWithMargins(t *testing.T) {
637+
func TestHelp_AddOptsWithMargins_bothOfNewMethod_andAddTextWithMargins(t *testing.T) {
638638
termCols := linebreak.TermCols()
639639

640640
help := cliargs.NewHelpWithMargins(4, 2)
@@ -666,7 +666,7 @@ func TestHelp_addOptsWithMargins_bothOfNewMethod_andAddTextWithMargins(t *testin
666666
assert.False(t, exists)
667667
}
668668

669-
func TestHelp_addOpsWithIndent_ifIndentIsLongerThanTitle(t *testing.T) {
669+
func TestHelp_AddOptsWithIndent_ifIndentIsLongerThanTitle(t *testing.T) {
670670
termCols := linebreak.TermCols()
671671

672672
help := cliargs.NewHelp()
@@ -697,7 +697,7 @@ func TestHelp_addOpsWithIndent_ifIndentIsLongerThanTitle(t *testing.T) {
697697
assert.False(t, exists)
698698
}
699699

700-
func TestHelp_addOpsWithIndent_ifIndentIsShorterThanTitle(t *testing.T) {
700+
func TestHelp_AddOptsWithIndent_ifIndentIsShorterThanTitle(t *testing.T) {
701701
termCols := linebreak.TermCols()
702702

703703
help := cliargs.NewHelp()
@@ -728,7 +728,7 @@ func TestHelp_addOpsWithIndent_ifIndentIsShorterThanTitle(t *testing.T) {
728728
assert.Equal(t, line, "")
729729
}
730730

731-
func TestHelp_addOpsWithIndentAndMargins(t *testing.T) {
731+
func TestHelp_AddOptsWithIndentAndMargins(t *testing.T) {
732732
termCols := linebreak.TermCols()
733733

734734
help := cliargs.NewHelp()
@@ -759,7 +759,7 @@ func TestHelp_addOpsWithIndentAndMargins(t *testing.T) {
759759
assert.Equal(t, line, "")
760760
}
761761

762-
func TestHelp_addOpts_ifOptsAreMultiple(t *testing.T) {
762+
func TestHelp_AddOpts_ifOptsAreMultiple(t *testing.T) {
763763
termCols := linebreak.TermCols()
764764

765765
help := cliargs.NewHelp()
@@ -808,7 +808,7 @@ func TestHelp_addOpts_ifOptsAreMultiple(t *testing.T) {
808808
assert.Equal(t, line, "")
809809
}
810810

811-
func TestHelp_addOpts_ifNamesAreEmptyAndStoreKeyIsSpecified(t *testing.T) {
811+
func TestHelp_AddOpts_ifNamesAreEmptyAndStoreKeyIsSpecified(t *testing.T) {
812812
help := cliargs.NewHelp()
813813

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

836-
func TestHelp_addOpts_ifStoreKeyIsAnyOption(t *testing.T) {
836+
func TestHelp_AddOpts_ifStoreKeyIsAnyOption(t *testing.T) {
837837
help := cliargs.NewHelp()
838838

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

861-
func TestHelp_addOpts_ifFirstElementOfNamesIsAnyOption(t *testing.T) {
861+
func TestHelp_AddOpts_ifFirstElementOfNamesIsAnyOption(t *testing.T) {
862862
help := cliargs.NewHelp()
863863

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

886-
func TestHelp_addTextWithIndent_ifIndentIsLongerThanLineWidth(t *testing.T) {
886+
func TestHelp_AddOptsWithIndent_ifIndentIsLongerThanLineWidth(t *testing.T) {
887887
termCols := linebreak.TermCols()
888888

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

913-
func TestHelp_addText_withMargins_ifSumOfMarginsAreEqualToLineWidth(t *testing.T) {
913+
func TestHelp_AddOptsWithMargins_ifSumOfMarginsAreEqualToLineWidth(t *testing.T) {
914914
termCols := linebreak.TermCols()
915915

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

940-
func TestHelp_addOpts_ifNamesContainsEmptyStrings(t *testing.T) {
940+
func TestHelp_AddOpts_ifNamesContainsEmptyStrings(t *testing.T) {
941941
help := cliargs.NewHelp()
942942

943943
help.AddOpts([]cliargs.OptCfg{

0 commit comments

Comments
 (0)