Method
_processLineBuffer
(data, strBuffer, onLine)
Source from the content-addressed store, hash-verified
| 20120 | return cmd; |
| 20121 | } |
| 20122 | _processLineBuffer(data, strBuffer, onLine) { |
| 20123 | try { |
| 20124 | let s = strBuffer + data.toString(); |
| 20125 | let n = s.indexOf(os3.EOL); |
| 20126 | while (n > -1) { |
| 20127 | const line = s.substring(0, n); |
| 20128 | onLine(line); |
| 20129 | s = s.substring(n + os3.EOL.length); |
| 20130 | n = s.indexOf(os3.EOL); |
| 20131 | } |
| 20132 | return s; |
| 20133 | } catch (err) { |
| 20134 | this._debug(`error processing line. Failed with error ${err}`); |
| 20135 | return ""; |
| 20136 | } |
| 20137 | } |
| 20138 | _getSpawnFileName() { |
| 20139 | if (IS_WINDOWS2) { |
| 20140 | if (this._isCmdFile()) { |
Tested by
no test coverage detected