Home
last modified time | relevance | path

Searched refs:MockFs (Results 1 – 8 of 8) sorted by relevance

/build/soong/finder/fs/
Dfs.go32 func NewMockFs(files map[string][]byte) *MockFs {
34 fs := &MockFs{
172 type MockFs struct { struct
189 var _ FileSystem = (*MockFs)(nil)
227 func (m *MockFs) resolve(path string, followLastLink bool) (result string, err error) { argument
237 func (m *MockFs) followLinks(path string, followLastLink bool, count int) (canonicalPath string, er… argument
290 func (m *MockFs) followLink(link *mockLink, parentPath string) (result string) { argument
294 func (m *MockFs) getFile(parentDir *mockDir, fileName string) (file *mockFile, err error) { argument
323 func (m *MockFs) getInode(parentDir *mockDir, name string) (inode *mockInode, err error) { argument
344 func (m *MockFs) Open(path string) (io.ReadCloser, error) { argument
[all …]
/build/soong/finder/
Dfinder_test.go33 func newFs() *fs.MockFs {
37 func newFinder(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams) *Finder { argument
41 func newFinderWithNumThreads(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThrea… argument
49 func newFinderAndErr(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThreads int) … argument
81 func write(t *testing.T, path string, content string, filesystem *fs.MockFs) { argument
90 func create(t *testing.T, path string, filesystem *fs.MockFs) { argument
94 func delete(t *testing.T, path string, filesystem *fs.MockFs) { argument
101 func removeAll(t *testing.T, path string, filesystem *fs.MockFs) { argument
108 func move(t *testing.T, oldPath string, newPath string, filesystem *fs.MockFs) { argument
115 func link(t *testing.T, newPath string, oldPath string, filesystem *fs.MockFs) { argument
[all …]
/build/blueprint/pathtools/
Dglob_test.go497 mock := MockFs(mockFiles)
556 mock := MockFs(mockFiles)
605 mock := MockFs(mockFiles)
653 mock := MockFs(mockFiles)
Dfs_test.go46 return MockFs(mockFiles).(*mockFs)
Dfs.go41 func MockFs(files map[string][]byte) FileSystem { func
/build/soong/zip/
Dzip_test.go42 var mockFs = pathtools.MockFs(map[string][]byte{
/build/soong/android/
Dconfig.go451 c.fs = pathtools.MockFs(mockFS)
/build/blueprint/
Dcontext.go945 c.fs = pathtools.MockFs(files)