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

Function TestIndex_PathNormalization

agent/filefinder/delta_test.go:112–120  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

110}
111
112func TestIndex_PathNormalization(t *testing.T) {
113 t.Parallel()
114 idx := filefinder.NewIndex()
115 idx.Add("Foo/Bar.go", 0)
116 // Should be findable with lowercase.
117 if !idx.Has("foo/bar.go") {
118 t.Fatal("expected case-insensitive Has")
119 }
120}

Callers

nothing calls this directly

Calls 4

AddMethod · 0.95
HasMethod · 0.95
NewIndexFunction · 0.92
FatalMethod · 0.80

Tested by

no test coverage detected