Lines Matching refs:fs
209 func (fs *testFileSystem) Open(name string) (File, error) {
210 return fs.open(name)
216 fs := FileServer(&testFileSystem{func(name string) (File, error) {
231 fs.ServeHTTP(rec, req)
252 fs := make(fakeFS)
255 fs[fmt.Sprintf("/%d", i)] = &fakeFileInfo{
260 fs[fmt.Sprintf("/%d/%s", i, test.name)] = testFile
263 ts := httptest.NewServer(FileServer(&fs))
547 func (fs fakeFS) Open(name string) (File, error) {
549 f, ok := fs[name]
570 fs := fakeFS{
579 ts := httptest.NewServer(FileServer(fs))
812 fs := fakeFS{
820 ts := httptest.NewServer(FileServer(fs))