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

Function newTestFs

agent/agentfiles/files_test.go:41–46  ·  view source on GitHub ↗
(base afero.Fs, intercept func(call, file string) error)

Source from the content-addressed store, hash-verified

39}
40
41func newTestFs(base afero.Fs, intercept func(call, file string) error) *testFs {
42 return &testFs{
43 Fs: base,
44 intercept: intercept,
45 }
46}
47
48func (fs *testFs) Open(name string) (afero.File, error) {
49 if err := fs.intercept("open", name); err != nil {

Callers 4

TestReadFileFunction · 0.70
TestWriteFileFunction · 0.70
TestEditFilesFunction · 0.70
TestReadFileLinesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected