MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / MockFileSystem

Struct MockFileSystem

internal/testutils/mocks.go:108–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108type MockFileSystem struct {
109 ReadFileFunc func(filename string) ([]byte, error)
110 WriteFileFunc func(filename string, data []byte, perm os.FileMode) error
111 MkdirAllFunc func(path string, perm os.FileMode) error
112 StatFunc func(name string) (os.FileInfo, error)
113}
114
115func (m *MockFileSystem) ReadFile(filename string) ([]byte, error) {
116 if m.ReadFileFunc != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected