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

Function TestWriteBrokenLink

pkg/watch/notify_test.go:296–310  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

294}
295
296func TestWriteBrokenLink(t *testing.T) {
297 if runtime.GOOS == "windows" {
298 t.Skip("no user-space symlinks on windows")
299 }
300 f := newNotifyFixture(t)
301
302 link := filepath.Join(f.paths[0], "brokenLink")
303 missingFile := filepath.Join(f.paths[0], "missingFile")
304 err := os.Symlink(missingFile, link)
305 if err != nil {
306 t.Fatal(err)
307 }
308
309 f.assertEvents(link)
310}
311
312func TestWriteGoodLink(t *testing.T) {
313 if runtime.GOOS == "windows" {

Callers

nothing calls this directly

Calls 2

newNotifyFixtureFunction · 0.85
assertEventsMethod · 0.80

Tested by

no test coverage detected