MCPcopy
hub / github.com/docker/compose / newTestWriter

Function newTestWriter

cmd/display/tty_test.go:34–45  ·  cmd/display/tty_test.go::newTestWriter
()

Source from the content-addressed store, hash-verified

32)
33
34func newTestWriter() (*ttyWriter, *bytes.Buffer) {
35 var buf bytes.Buffer
36 w := &ttyWriter{
37 out: &buf,
38 info: &buf,
39 tasks: map[string]*task{},
40 done: make(chan bool),
41 mtx: &sync.Mutex{},
42 operation: "pull",
43 }
44 return w, &buf
45}
46
47func addTask(w *ttyWriter, id, text, details string, status api.EventStatus) {
48 t := &task{

Calls

no outgoing calls

Tested by

no test coverage detected