MCPcopy Index your code
hub / github.com/coder/coder / fakeWatcher

Struct fakeWatcher

agent/agentcontainers/api_test.go:233–242  ·  view source on GitHub ↗

fakeWatcher implements the watcher.Watcher interface for testing. It allows controlling what events are sent and when.

Source from the content-addressed store, hash-verified

231// fakeWatcher implements the watcher.Watcher interface for testing.
232// It allows controlling what events are sent and when.
233type fakeWatcher struct {
234 t testing.TB
235 events chan *fsnotify.Event
236 closeNotify chan struct{}
237 addedPaths []string
238 closed bool
239 nextCalled chan struct{}
240 nextErr error
241 closeErr error
242}
243
244func newFakeWatcher(t testing.TB) *fakeWatcher {
245 return &fakeWatcher{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected