MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / loadTests

Function loadTests

scripts/rubi/load-tests.ts:83–95  ·  view source on GitHub ↗
(root: string, subdir = '')

Source from the content-addressed store, hash-verified

81}
82
83export function loadTests(root: string, subdir = ''): LoadResult {
84 // allow a single .m file as the subdir
85 if (subdir.endsWith('.m') && fs.statSync(path.join(root, subdir)).isFile())
86 return loadTestFile(root, subdir);
87 const problems: Problem[] = [];
88 const errors: LoadResult['errors'] = [];
89 for (const file of listTestFiles(root, subdir)) {
90 const r = loadTestFile(root, file);
91 problems.push(...r.problems);
92 errors.push(...r.errors);
93 }
94 return { problems, errors };
95}

Callers 3

triage.tsFile · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls 2

loadTestFileFunction · 0.85
listTestFilesFunction · 0.85

Tested by

no test coverage detected