(b *testing.B)
| 133 | } |
| 134 | |
| 135 | func BenchmarkScannerReadString(b *testing.B) { |
| 136 | for _, bench := range quotedStringCases { |
| 137 | b.Run(bench.label, func(b *testing.B) { |
| 138 | for i := 0; i < b.N; i++ { |
| 139 | l := &Scanner{data: []byte(bench.in)} |
| 140 | _ = l.fetchQuotedString() |
| 141 | } |
| 142 | }) |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | func BenchmarkScannerReadComment(b *testing.B) { |
| 147 | for _, bench := range commentCases { |
nothing calls this directly
no test coverage detected
searching dependent graphs…