MCPcopy
hub / github.com/elastic/go-elasticsearch / fixture

Function fixture

_examples/encoding/benchmark_test.go:184–191  ·  view source on GitHub ↗
(fname string)

Source from the content-addressed store, hash-verified

182}
183
184func fixture(fname string) *bytes.Buffer {
185 payload, err := ioutil.ReadFile(fname)
186 if err != nil {
187 log.Fatalf("Error: %s", err)
188 }
189
190 return bytes.NewBuffer(payload)
191}

Callers 1

BenchmarkDecodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected