MCPcopy Create free account
hub / github.com/apache/kvrocks / test_go

Function test_go

x.py:320–336  ·  view source on GitHub ↗
(dir: str, cli_path: str, rest: List[str])

Source from the content-addressed store, hash-verified

318
319
320def test_go(dir: str, cli_path: str, rest: List[str]) -> None:
321 go = find_command('go', msg='go is required for testing')
322 find_command(cli_path, msg='redis-cli is required for testing')
323
324 binpath = Path(dir).absolute() / 'kvrocks'
325 basedir = Path(__file__).parent.absolute() / 'tests' / 'gocase'
326 workspace = basedir / 'workspace'
327
328 args = [
329 'test', '-timeout=1800s', '-bench=.', './...',
330 f'-binPath={binpath}',
331 f'-cliPath={cli_path}',
332 f'-workspace={workspace}',
333 *rest
334 ]
335
336 run(go, *args, cwd=str(basedir), verbose=True)
337
338
339if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

find_commandFunction · 0.85
runFunction · 0.85

Tested by

no test coverage detected