Method
WriteStdLog
(from int, buf []byte, eof, lf bool)
Source from the content-addressed store, hash-verified
| 143 | } |
| 144 | |
| 145 | func (m *logStatStoreMock) WriteStdLog(from int, buf []byte, eof, lf bool) error { |
| 146 | if m.from != from { |
| 147 | return nil |
| 148 | } |
| 149 | m.logbuf.Write(buf) |
| 150 | m.logbuf.WriteByte('\n') |
| 151 | if eof { |
| 152 | if from == StdoutLog { |
| 153 | m.flags.Set(flagOutdone) |
| 154 | } else if from == StderrLog { |
| 155 | m.flags.Set(flagErrdone) |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | return nil |
| 160 | } |
| 161 | |
| 162 | func (m *logStatStoreMock) WriteFunctionLog(log string) error { |
| 163 | m.logbuf.WriteString(log) |
Callers
nothing calls this directly
Tested by
no test coverage detected