Implement unit tests for reading the Lua tracer FF in analyze-action.

This commit is contained in:
Cornelius Riemenschneider 2022-06-27 16:01:48 +00:00 committed by GitHub
parent f422a50448
commit ab7316e0c5
12 changed files with 231 additions and 19 deletions

View file

@ -634,8 +634,10 @@ export function getCachedCodeQL(): CodeQL {
* a non-existent placeholder codeql command, so tests that use this function
* should also stub the toolrunner.ToolRunner constructor.
*/
export async function getCodeQLForTesting(): Promise<CodeQL> {
return getCodeQLForCmd("codeql-for-testing", false);
export async function getCodeQLForTesting(
cmd = "codeql-for-testing"
): Promise<CodeQL> {
return getCodeQLForCmd(cmd, false);
}
/**