| 187 | } |
| 188 | |
| 189 | func TestTokenizerErrorZeroValue(t *testing.T) { |
| 190 | var err TokenizerError |
| 191 | |
| 192 | if err.Message != "" { |
| 193 | t.Errorf("Zero value Message = %v, want empty string", err.Message) |
| 194 | } |
| 195 | |
| 196 | if err.Location.Line != 0 || err.Location.Column != 0 { |
| 197 | t.Errorf("Zero value Location = %v, want zero location", err.Location) |
| 198 | } |
| 199 | |
| 200 | if err.Error() != "" { |
| 201 | t.Errorf("Zero value Error() = %v, want empty string", err.Error()) |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | func BenchmarkTokenizerError(b *testing.B) { |
| 206 | b.ResetTimer() |