MCPcopy
hub / github.com/meteor/meteor / readTestState

Function readTestState

tools/tool-testing/selftest.js:519–529  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

517};
518
519function readTestState() {
520 const testStateFile = getTestStateFilePath();
521 let testState;
522 if (files.exists(testStateFile)) {
523 testState = JSON.parse(files.readFile(testStateFile, 'utf8'));
524 }
525 if (! testState || testState.version !== 1) {
526 testState = { version: 1, lastPassedHashes: {} };
527 }
528 return testState;
529};
530
531function writeTestState(testState) {
532 const testStateFile = getTestStateFilePath();

Callers 1

getFilteredTestsFunction · 0.85

Calls 3

getTestStateFilePathFunction · 0.85
parseMethod · 0.65
readFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…