Skip to content

Commit 26c58b2

Browse files
test: update the test case name
1 parent af7f9a7 commit 26c58b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/config_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func TestConfig_Validate_ValidIgnorePattern(t *testing.T) {
161161
}
162162
}
163163

164-
func TestConfig_WriteTo(t *testing.T) {
164+
func TestConfig_WriteCompactTo(t *testing.T) {
165165
conf := config.NewDefault()
166166
var buf bytes.Buffer
167167
err := config.WriteCompactTo(&buf, conf)
@@ -170,7 +170,7 @@ func TestConfig_WriteTo(t *testing.T) {
170170
}
171171
output := buf.String()
172172
if output == "" {
173-
t.Error("expected non-empty output from WriteTo")
173+
t.Error("expected non-empty output from WriteCompactTo")
174174
}
175175

176176
// Should only contain settings for the 5 enabled rules, not all 20
@@ -186,7 +186,7 @@ func TestConfig_WriteTo(t *testing.T) {
186186
}
187187
}
188188

189-
func TestConfig_WriteTo_WithUserIgnores(t *testing.T) {
189+
func TestConfig_WriteCompactTo_WithUserIgnores(t *testing.T) {
190190
conf := config.NewDefault()
191191
conf.IgnorePatterns = []string{`^WIP `}
192192
var buf bytes.Buffer

0 commit comments

Comments
 (0)