MCPcopy Index your code
hub / github.com/PrairieLearn/PrairieLearn / _handleStdoutData

Method _handleStdoutData

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

Source from the content-addressed store, hash-verified

275 }
276
277 _handleStdoutData(data) {
278 debug(`enter _handleStdoutData(), state: ${String(this.state)}, uuid: ${this.uuid}`);
279 this._checkState([IN_CALL, EXITING]);
280 if (this.state == IN_CALL) {
281 this.outputStdout += data;
282 this.outputBoth += data;
283 } else {
284 this._logError(`Unexpected STDOUT data: ${data}`);
285 }
286 debug(`exit _handleStdoutData(), state: ${String(this.state)}, uuid: ${this.uuid}`);
287 }
288
289 _handleStdio3Data(data) {
290 debug(`enter _handleStdio3Data(), state: ${String(this.state)}, uuid: ${this.uuid}`);

Callers

nothing calls this directly

Calls 3

_checkStateMethod · 0.95
_logErrorMethod · 0.95
debugFunction · 0.85

Tested by

no test coverage detected