(b *testing.B)
| 144 | } |
| 145 | |
| 146 | func BenchmarkScannerReadComment(b *testing.B) { |
| 147 | for _, bench := range commentCases { |
| 148 | b.Run(bench.label, func(b *testing.B) { |
| 149 | for i := 0; i < b.N; i++ { |
| 150 | l := &Scanner{data: []byte(bench.in)} |
| 151 | _ = l.fetchComment() |
| 152 | } |
| 153 | }) |
| 154 | } |
| 155 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…