MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / WriteStdLog

Method WriteStdLog

pkg/controller/rtctrl/logstore_test.go:145–160  ·  view source on GitHub ↗
(from int, buf []byte, eof, lf bool)

Source from the content-addressed store, hash-verified

143}
144
145func (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
162func (m *logStatStoreMock) WriteFunctionLog(log string) error {
163 m.logbuf.WriteString(log)

Callers

nothing calls this directly

Calls 3

WriteByteMethod · 0.80
WriteMethod · 0.65
SetMethod · 0.65

Tested by

no test coverage detected