(dir: str, cli_path: str, rest: List[str])
| 318 | |
| 319 | |
| 320 | def 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 | |
| 339 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected