MCPcopy Create free account
hub / github.com/LissaGreense/GO4SQL / getErrorMessage

Function getErrorMessage

parser/parser_error_handling_test.go:257–267  ·  view source on GitHub ↗
(t *testing.T, input string, testIndex int)

Source from the content-addressed store, hash-verified

255}
256
257func getErrorMessage(t *testing.T, input string, testIndex int) string {
258 lexerInstance := lexer.RunLexer(input)
259 parserInstance := New(lexerInstance)
260 _, err := parserInstance.ParseSequence()
261
262 if err == nil {
263 t.Fatalf("[%v]Was expecting error from parser but there was none", testIndex)
264 }
265
266 return err.Error()
267}

Callers 1

Calls 4

RunLexerFunction · 0.92
ParseSequenceMethod · 0.80
NewFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected