Searched refs:MockFs (Results 1 – 8 of 8) sorted by relevance
/build/soong/finder/fs/ |
D | fs.go | 32 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/ |
D | finder_test.go | 33 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/ |
D | glob_test.go | 497 mock := MockFs(mockFiles) 556 mock := MockFs(mockFiles) 605 mock := MockFs(mockFiles) 653 mock := MockFs(mockFiles)
|
D | fs_test.go | 46 return MockFs(mockFiles).(*mockFs)
|
D | fs.go | 41 func MockFs(files map[string][]byte) FileSystem { func
|
/build/soong/zip/ |
D | zip_test.go | 42 var mockFs = pathtools.MockFs(map[string][]byte{
|
/build/soong/android/ |
D | config.go | 451 c.fs = pathtools.MockFs(mockFS)
|
/build/blueprint/ |
D | context.go | 945 c.fs = pathtools.MockFs(files)
|