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

Function runEngineErrorHandlingSuite

engine/engine_error_handling_test.go:106–114  ·  view source on GitHub ↗
(t *testing.T, suite []errorHandlingTestSuite)

Source from the content-addressed store, hash-verified

104}
105
106func runEngineErrorHandlingSuite(t *testing.T, suite []errorHandlingTestSuite) {
107 for i, test := range suite {
108 errorMsg := getErrorMessage(t, test.input, i)
109
110 if errorMsg != test.expectedError {
111 t.Fatalf("[%v]Was expecting error: \n\t{%s},\n\tbut it was:\n\t{%s}", i, test.expectedError, errorMsg)
112 }
113 }
114}
115
116func getErrorMessage(t *testing.T, input string, testIndex int) string {
117 lexerInstance := lexer.RunLexer(input)

Calls 1

getErrorMessageFunction · 0.70

Tested by

no test coverage detected