Home
last modified time | relevance | path

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

/build/soong/finder/fs/
Dtest.go26 func Write(t *testing.T, path string, content string, filesystem *MockFs) { argument
35 func Create(t *testing.T, path string, filesystem *MockFs) { argument
39 func Delete(t *testing.T, path string, filesystem *MockFs) { argument
46 func RemoveAll(t *testing.T, path string, filesystem *MockFs) { argument
53 func Move(t *testing.T, oldPath string, newPath string, filesystem *MockFs) { argument
60 func Link(t *testing.T, newPath string, oldPath string, filesystem *MockFs) { argument
72 func Read(t *testing.T, path string, filesystem *MockFs) string { argument
85 func ModTime(t *testing.T, path string, filesystem *MockFs) time.Time { argument
93 func SetReadable(t *testing.T, path string, readable bool, filesystem *MockFs) { argument
100 func SetReadErr(t *testing.T, path string, readErr error, filesystem *MockFs) { argument
Dfs.go32 func NewMockFs(files map[string][]byte) *MockFs {
34 fs := &MockFs{
177 type MockFs struct { struct
194 var _ FileSystem = (*MockFs)(nil)
232 func (m *MockFs) resolve(path string, followLastLink bool) (result string, err error) { argument
242 func (m *MockFs) followLinks(path string, followLastLink bool, count int) (canonicalPath string, er… argument
295 func (m *MockFs) followLink(link *mockLink, parentPath string) (result string) { argument
299 func (m *MockFs) getFile(parentDir *mockDir, fileName string) (file *mockFile, err error) { argument
328 func (m *MockFs) getInode(parentDir *mockDir, name string) (inode *mockInode, err error) { argument
349 func (m *MockFs) Open(path string) (io.ReadCloser, error) { argument
[all …]
/build/blueprint/pathtools/
Dglob_test.go497 mock := MockFs(mockFiles)
556 mock := MockFs(mockFiles)
605 mock := MockFs(mockFiles)
653 mock := MockFs(mockFiles)
755 mock := MockFs(mockFiles)
956 mock := MockFs(mockFiles)
Dfs_test.go46 return MockFs(mockFiles).(*mockFs)
Dfs.go41 func MockFs(files map[string][]byte) FileSystem { func
/build/soong/finder/
Dfinder_test.go31 func newFs() *fs.MockFs {
35 func newFinder(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams) *Finder { argument
39 func newFinderWithNumThreads(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThrea… argument
47 func newFinderAndErr(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThreads int) … argument
1138 func runFsReplacementTest(t *testing.T, fs1 *fs.MockFs, fs2 *fs.MockFs) { argument
/build/soong/zip/
Dzip_test.go42 var mockFs = pathtools.MockFs(map[string][]byte{
539 mockFs := pathtools.MockFs(map[string][]byte{
/build/soong/bpfix/bpfix/
Dbpfix_test.go1754 mockFs := pathtools.MockFs(map[string][]byte{
1913 fs: pathtools.MockFs(map[string][]byte{
1953 fs: pathtools.MockFs(map[string][]byte{
/build/soong/android/
Dconfig.go584 c.fs = pathtools.MockFs(mockFS)
/build/blueprint/
Dcontext.go1059 c.fs = pathtools.MockFs(files)