Debian Codegraph @

gopls/internal/filewatcher/export_test.go

raw symbols SCIP
1 // Copyright 2025 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package filewatcher
6
7 // This file defines things (and opens backdoors) needed only by tests.
8
9 // SetAfterAddHook sets a hook to be called after a path is added to the watcher.
10 // This is used in tests to inspect the error returned by the underlying watcher.
11 func SetAfterAddHook(f func(string, error)) {
12 afterAddHook = f
13 }