mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
all: Run gofumpt -l -w .
This commit is contained in:
@@ -86,7 +86,8 @@ func TestClassCollector(t *testing.T) {
|
||||
}">
|
||||
</div>
|
||||
</body>`, f("body div", "class1 class2 class3", "")},
|
||||
{"AlpineJS bind 2", `<div x-bind:class="{ 'bg-black': filter.checked }" class="inline-block mr-1 mb-2 rounded bg-gray-300 px-2 py-2">FOO</div>`,
|
||||
{
|
||||
"AlpineJS bind 2", `<div x-bind:class="{ 'bg-black': filter.checked }" class="inline-block mr-1 mb-2 rounded bg-gray-300 px-2 py-2">FOO</div>`,
|
||||
f("div", "bg-black bg-gray-300 inline-block mb-2 mr-1 px-2 py-2 rounded", ""),
|
||||
},
|
||||
{"AlpineJS bind 3", `<div x-bind:class="{ 'text-gray-800': !checked, 'text-white': checked }"></div>`, f("div", "text-gray-800 text-white", "")},
|
||||
@@ -130,7 +131,6 @@ func TestClassCollector(t *testing.T) {
|
||||
<div id="b" class="foo">d</div>`, f("div form", "foo", "a b")},
|
||||
{"Big input, multibyte runes", strings.Repeat(`神真美好 `, rnd.Intn(500)+1) + "<div id=\"神真美好\" class=\"foo\">" + strings.Repeat(`神真美好 `, rnd.Intn(100)+1) + " <span>神真美好</span>", f("div span", "foo", "神真美好")},
|
||||
} {
|
||||
|
||||
for _, variant := range []struct {
|
||||
minify bool
|
||||
}{
|
||||
@@ -161,7 +161,6 @@ func TestClassCollector(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestEndsWithTag(t *testing.T) {
|
||||
@@ -190,7 +189,6 @@ func TestEndsWithTag(t *testing.T) {
|
||||
c.Assert(got, qt.Equals, test.expect)
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func BenchmarkElementsCollectorWriter(b *testing.B) {
|
||||
@@ -276,6 +274,5 @@ func BenchmarkElementsCollectorWriterPre(b *testing.B) {
|
||||
))
|
||||
for i := 0; i < b.N; i++ {
|
||||
fmt.Fprint(w, benchHTML)
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user