MCPcopy Index your code
hub / github.com/atomicgo/cursor / getFileContent

Function getFileContent

cursor_test_linux.go:101–112  ·  view source on GitHub ↗
(t *testing.T, fileName string)

Source from the content-addressed store, hash-verified

99}
100
101func getFileContent(t *testing.T, fileName string) string {
102 t.Helper()
103
104 content, err := os.ReadFile(fileName)
105 if err != nil {
106 t.Errorf("failed to read file contents: %s", err)
107
108 return ""
109 }
110
111 return string(content)
112}
113
114func clearFile(t *testing.T, file *os.File) {
115 t.Helper()

Callers 1

TestCustomIOWriterFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCustomIOWriterFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…