package
0.3.4
Repository: https://github.com/src-d/regression-gitbase.git
Documentation: pkg.go.dev

# Functions

TestBrokenUASTInResponseWarning 1) prepare bblfsh mockup that returns broken UAST bytes sequence 2) run gitbase 3) execute query uastQuery 4) check that no error was returned during the query execution 5) check gitbase stderr: there should be warnings with "short read" 6) the amount of warnings should be equal to limit.
TestParseErrorWarnings contains three subtests with 3 bblfsh mockups: without ParseErrors, with one ParseError and with three ParseErrors for each of the mockup: 1) run gitbase 2) execute query uastQuery 3) check that no error was returned during the query execution 4) check that related warnings appeared.
TestQueryExecAfterTimeout 1) prepare bblfsh mockup that performs sleep responseLag time during the ParseRequest and returns specific errText error on parse request 2) run gitbase with GITBASE_CONNECTION_TIMEOUT = responseLag - 1 second 3) execute query uastQuery 4) check that warning(or error?) related to timeout appeared?.
TestQueryExecBeforeTimeout 1) prepare bblfsh mockup that performs sleep responseLag time during the ParseRequest handling and returns specific errText error on parse request 2) run gitbase with GITBASE_CONNECTION_TIMEOUT = responseLag + 1 second 3) execute query uastQuery 4) check that no error was returned during the query execution 5) check gitbase stderr: there should be warnings with errText 6) the amount of warnings should be equal to limit.
TestResponseErrorWarnings 1) prepare bblfsh mockup that returns specific errText error on parse request 2) run gitbase 3) execute query uastQuery 4) check that no error was returned during the query execution 5) check gitbase stderr: there should be warnings with errText 6) the amount of warnings should be equal to limit.