summaryrefslogtreecommitdiffstats
path: root/common/text/transform_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/text/transform_test.go')
-rw-r--r--common/text/transform_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/text/transform_test.go b/common/text/transform_test.go
index 10738aee7..41447715f 100644
--- a/common/text/transform_test.go
+++ b/common/text/transform_test.go
@@ -59,3 +59,18 @@ line 3`
c.Assert(collected, qt.DeepEquals, []string{"line 1\n", "line 2\n", "\n", "line 3"})
}
+
+func BenchmarkVisitLinesAfter(b *testing.B) {
+ const lines = `line 1
+ line 2
+
+ line 3`
+
+ for i := 0; i < b.N; i++ {
+ VisitLinesAfter(lines, func(s string) {
+
+ })
+
+ }
+
+}