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