MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestTokenizerErrorZeroValue

Function TestTokenizerErrorZeroValue

pkg/models/tokenizer_error_test.go:189–203  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

187}
188
189func 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
205func BenchmarkTokenizerError(b *testing.B) {
206 b.ResetTimer()

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected