all repos — gomponents @ 137665b4ab09fb85461afa42ce187f997d601cdc

HTML components in pure Go

modernise tests

Alan Pearce
commit

137665b4ab09fb85461afa42ce187f997d601cdc

parent

91805813d15b1903a4c5bb540b59172c31c73622

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M gomponents_test.gogomponents_test.go
@@ -64,7 +64,7 @@ func BenchmarkAttr(b *testing.B) {
b.Run("boolean attributes", func(b *testing.B) { var sb strings.Builder - for i := 0; i < b.N; i++ { + for b.Loop() { a := g.Attr("hat") _ = a.Render(&sb) sb.Reset()
@@ -182,7 +182,7 @@ func BenchmarkEl(b *testing.B) {
b.Run("normal elements", func(b *testing.B) { var sb strings.Builder - for i := 0; i < b.N; i++ { + for b.Loop() { e := g.El("div") _ = e.Render(&sb) sb.Reset()