MCPcopy
hub / github.com/moby/moby / mockLoggingPlugin

Struct mockLoggingPlugin

daemon/logger/adapter_test.go:19–25  ·  view source on GitHub ↗

mockLoggingPlugin implements the loggingPlugin interface for testing purposes it only supports a single log stream

Source from the content-addressed store, hash-verified

17// mockLoggingPlugin implements the loggingPlugin interface for testing purposes
18// it only supports a single log stream
19type mockLoggingPlugin struct {
20 io.WriteCloser
21 inStream io.Reader
22 logs []*logdriver.LogEntry
23 c *sync.Cond
24 err error
25}
26
27func newMockLoggingPlugin() *mockLoggingPlugin {
28 r, w := io.Pipe()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected