MCPcopy
hub / github.com/grafana/tempo / readBytes

Function readBytes

tools/chloggen/cmd/cmd_test.go:166–174  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

164}
165
166func readBytes(path string) ([]byte, error) {
167 file, err := os.Open(filepath.Clean(path))
168 if err != nil {
169 return nil, err
170 }
171 defer file.Close()
172
173 return io.ReadAll(file)
174}

Callers 1

setupTestDirFunction · 0.85

Calls 2

CloseMethod · 0.65
ReadAllMethod · 0.65

Tested by

no test coverage detected