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

Method Rm

pkg/watch/temp_dir_fixture.go:162–168  ·  view source on GitHub ↗
(pathInRepo string)

Source from the content-addressed store, hash-verified

160}
161
162func (f *TempDirFixture) Rm(pathInRepo string) {
163 fullPath := f.JoinPath(pathInRepo)
164 err := os.RemoveAll(fullPath)
165 if err != nil {
166 f.t.Fatal(err)
167 }
168}
169
170func (f *TempDirFixture) NewFile(prefix string) (*os.File, error) {
171 return os.CreateTemp(f.dir.Path(), prefix)

Callers

nothing calls this directly

Calls 2

JoinPathMethod · 0.95
RemoveAllMethod · 0.80

Tested by

no test coverage detected