Skip to content

Commit 760e23b

Browse files
committed
fix lint
1 parent 4adf1e3 commit 760e23b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/htmlutil/html_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import (
1010
"github.com/stretchr/testify/assert"
1111
)
1212

13-
type testStringer struct {
14-
}
13+
type testStringer struct{}
1514

1615
func (t testStringer) String() string {
17-
return "FromStringMethod"
16+
return "&StringMethod"
1817
}
18+
1919
func TestHTMLFormat(t *testing.T) {
2020
assert.Equal(t, template.HTML("<a>&lt; < 1</a>"), HTMLFormat("<a>%s %s %d</a>", "<", template.HTML("<"), 1))
2121
assert.Equal(t, template.HTML("%!s(<nil>)"), HTMLFormat("%s", nil))
2222
assert.Equal(t, template.HTML("&lt;&gt;"), HTMLFormat("%s", template.URL("<>")))
23-
assert.Equal(t, template.HTML("FromStringMethod FromStringMethod"), HTMLFormat("%s %s", testStringer{}, &testStringer{}))
23+
assert.Equal(t, template.HTML("&amp;StringMethod &amp;StringMethod"), HTMLFormat("%s %s", testStringer{}, &testStringer{}))
2424
}

0 commit comments

Comments
 (0)