Lines Matching full:mode
24 class Mode { class
32 LINT_RESULT_EXT[Mode.DEFAULT] = '.json';
33 LINT_RESULT_EXT[Mode.AUTOFIX] = '.autofix.json';
34 LINT_RESULT_EXT[Mode.ARKTS2] = '.arkts2.json';
35 LINT_RESULT_EXT[Mode.MIGRATE] = '.migrate.json';
78 let testModes = [Mode.DEFAULT];
83 if (testArgs?.mode?.autofix !== undefined) testModes.push(Mode.AUTOFIX);
84 if (testArgs?.mode?.arkts2 !== undefined) testModes.push(Mode.ARKTS2);
85 if (testArgs?.mode?.migrate !== undefined) testModes.push(Mode.MIGRATE);
88 for (const mode of testModes) {
89 updateTest(testDir, testFile, mode);
93 function updateTest(testDir, testFile, mode) { argument
94 updateLintResult(testDir, testFile, mode);
95 if (mode === Mode.MIGRATE) {
100 function updateLintResult(testDir, testFile, mode) { argument
101 let resultExt = LINT_RESULT_EXT[mode];
107 // - expected '.json' for specified test mode doesn't exist