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

Function newTestEngine

agent/filefinder/engine_test.go:18–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16)
17
18func newTestEngine(t *testing.T) (*filefinder.Engine, context.Context) {
19 t.Helper()
20 logger := slogtest.Make(t, &slogtest.Options{IgnoreErrors: true}).Leveled(slog.LevelDebug)
21 eng := filefinder.NewEngine(logger)
22 t.Cleanup(func() { _ = eng.Close() })
23 return eng, context.Background()
24}
25
26func requireResultHasPath(t *testing.T, results []filefinder.Result, path string) {
27 t.Helper()

Calls 4

CloseMethod · 0.95
NewEngineFunction · 0.92
HelperMethod · 0.65
CleanupMethod · 0.65

Tested by

no test coverage detected