MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / _handleStdio3Data

Method _handleStdio3Data

lib/code-caller.js:289–299  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

287 }
288
289 _handleStdio3Data(data) {
290 debug(`enter _handleStdio3Data(), state: ${String(this.state)}, uuid: ${this.uuid}`);
291 this._checkState([IN_CALL, EXITING]);
292 if (this.state == IN_CALL) {
293 this.outputData += data;
294 if (this.outputData.indexOf('\n') >= 0) {
295 this._callIsFinished();
296 }
297 }
298 debug(`exit _handleStdio3Data(), state: ${String(this.state)}, uuid: ${this.uuid}`);
299 }
300
301 _handleChildExit(code, signal) {
302 debug(`enter _handleChildExit(), state: ${String(this.state)}, uuid: ${this.uuid}`);

Callers

nothing calls this directly

Calls 3

_checkStateMethod · 0.95
_callIsFinishedMethod · 0.95
debugFunction · 0.85

Tested by

no test coverage detected