MCPcopy Create free account
hub / github.com/AdRoll/baker / Run

Method Run

input/inputtest/records.go:35–47  ·  view source on GitHub ↗
(output chan<- *baker.Data)

Source from the content-addressed store, hash-verified

33}
34
35func (in *Records) Run(output chan<- *baker.Data) error {
36
37 var buf []byte
38
39 // Send all lines via a single baker.Data blob.
40 for _, ll := range in.Records {
41 buf = ll.ToText(buf)
42 buf = append(buf, '\n')
43 }
44 output <- &baker.Data{Bytes: buf}
45
46 return nil
47}
48
49func (Records) Stop() {}
50func (Records) FreeMem(data *baker.Data) {}

Callers

nothing calls this directly

Calls 1

ToTextMethod · 0.65

Tested by

no test coverage detected