MCPcopy Index your code
hub / github.com/apache/echarts / fork

Method fork

test/runTest/server.js:150–168  ·  view source on GitHub ↗
(extraArgs)

Source from the content-addressed store, hash-verified

148 }
149
150 fork(extraArgs) {
151 let p = fork(path.join(__dirname, 'cli.js'), [
152 '--tests', this.tests.map(testOpt => testOpt.name).join(','),
153 ...extraArgs
154 ]);
155 this.p = p;
156
157 // Finished one test
158 p.on('message', testOpt => {
159 mergeTestsResults([testOpt]);
160 saveTestsList();
161 this.onUpdate();
162 });
163 // Finished all
164 p.on('exit', () => {
165 this.p = null;
166 setTimeout(this.onExit);
167 });
168 }
169
170 kill() {
171 if (this.p) {

Callers 1

startTestsFunction · 0.80

Calls 2

onUpdateMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected