MCPcopy Index your code
hub / github.com/sourcegraph/checkup / Fetch

Method Fetch

storage/github/github.go:263–271  ·  view source on GitHub ↗

Fetch returns a checkup record -- Not tested!

(name string)

Source from the content-addressed store, hash-verified

261
262// Fetch returns a checkup record -- Not tested!
263func (gh *Storage) Fetch(name string) ([]types.Result, error) {
264 contents, _, err := gh.readFile(name)
265 if err != nil {
266 return nil, err
267 }
268 var r []types.Result
269 err = json.Unmarshal(contents, &r)
270 return r, err
271}
272
273// GetIndex returns the checkup index
274func (gh *Storage) GetIndex() (map[string]int64, error) {

Callers

nothing calls this directly

Implementers 5

fakecheckup_test.go
Storagestorage/sql/sql.go
Storagestorage/s3/s3.go
Storagestorage/github/github.go
Storagestorage/fs/fs.go

Calls 1

readFileMethod · 0.95

Tested by

no test coverage detected