MCPcopy Create free account
hub / github.com/containerd/nerdctl / WriteLogEntry

Method WriteLogEntry

pkg/logging/logging_test.go:80–89  ·  view source on GitHub ↗
(stream, line string)

Source from the content-addressed store, hash-verified

78}
79func (m *SyncMockDriver) PostProcess() error { return nil }
80func (m *SyncMockDriver) WriteLogEntry(stream, line string) error {
81 m.mu.Lock()
82 defer m.mu.Unlock()
83 if stream == streamStdout {
84 m.receivedStdout = append(m.receivedStdout, line)
85 } else {
86 m.receivedStderr = append(m.receivedStderr, line)
87 }
88 return nil
89}
90
91func TestLoggingProcessAdapter(t *testing.T) {
92 // Will process a normal String to stdout and a bigger one to stderr

Callers

nothing calls this directly

Calls 1

LockMethod · 0.65

Tested by

no test coverage detected