MCPcopy Create free account
hub / github.com/github/copilot-sdk / ReadFile

Method ReadFile

go/internal/e2e/session_fs_e2e_test.go:347–353  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

345}
346
347func (h *testSessionFSHandler) ReadFile(path string) (string, error) {
348 content, err := os.ReadFile(providerPath(h.root, h.sessionID, path))
349 if err != nil {
350 return "", err
351 }
352 return string(content), nil
353}
354
355func (h *testSessionFSHandler) WriteFile(path string, content string, mode *int) error {
356 fullPath := providerPath(h.root, h.sessionID, path)

Callers 1

Calls 2

providerPathFunction · 0.85
ReadFileMethod · 0.65

Tested by

no test coverage detected