MCPcopy
hub / github.com/docker/compose / ReadFile

Method ReadFile

pkg/watch/temp_dir_fixture.go:127–134  ·  view source on GitHub ↗

Read the file.

(path string)

Source from the content-addressed store, hash-verified

125
126// Read the file.
127func (f *TempDirFixture) ReadFile(path string) string {
128 fullPath := f.JoinPath(path)
129 contents, err := os.ReadFile(fullPath)
130 if err != nil {
131 f.t.Fatal(err)
132 }
133 return string(contents)
134}
135
136func (f *TempDirFixture) WriteSymlink(linkContents, destPath string) {
137 fullDestPath := f.JoinPath(destPath)

Callers 10

loadFileObjectFunction · 0.80
CopyFileMethod · 0.80
TestCopyFunction · 0.80
initializePluginsFunction · 0.80
doBuildBakeMethod · 0.80
parseSecurityOptsFunction · 0.80
processFileFunction · 0.80
envFileLayersFunction · 0.80
ReadFunction · 0.80

Calls 1

JoinPathMethod · 0.95

Tested by 2

TestCopyFunction · 0.64