MCPcopy
hub / github.com/air-verse/air / TestNewWatcher_PollIntervalHasMinimum500ms

Function TestNewWatcher_PollIntervalHasMinimum500ms

runner/watcher_test.go:36–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestNewWatcher_PollIntervalHasMinimum500ms(t *testing.T) {
37 t.Parallel()
38
39 cfg := defaultConfig()
40 cfg.Build.Poll = true
41 cfg.Build.PollInterval = 100
42
43 w, err := newWatcher(&cfg)
44 if err != nil {
45 t.Fatalf("newWatcher() error = %v", err)
46 }
47 if w == nil {
48 t.Fatal("newWatcher() returned nil watcher")
49 }
50}

Callers

nothing calls this directly

Calls 2

defaultConfigFunction · 0.85
newWatcherFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…