MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / getReader

Function getReader

scripts/verify/main.go:82–94  ·  view source on GitHub ↗
(fname string)

Source from the content-addressed store, hash-verified

80}
81
82func getReader(fname string) (*os.File, *bufio.Reader) {
83 f, err := os.Open(fname)
84 if err != nil {
85 glog.WithError(err).Fatal("Unable to open file")
86 }
87
88 r, err := gzip.NewReader(f)
89 if err != nil {
90 glog.WithError(err).Fatal("Unable to open file")
91 }
92
93 return f, bufio.NewReader(r)
94}
95
96func convert(n graph.NQuad) R {
97 r := R{}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected