Home
last modified time | relevance | path

Searched defs:MockFs (Results 1 – 4 of 4) sorted by relevance

/build/soong/finder/fs/
Dfs.go177 type MockFs struct { struct
179 viewId string //
180 deviceNumber uint64
183 root mockDir
184 Clock *Clock
185 workDir string
186 nextInodeNumber uint64
189 StatCalls []string
190 ReadDirCalls []string
191 aggregatesLock sync.Mutex
[all …]
Dtest.go26 func Write(t *testing.T, path string, content string, filesystem *MockFs) {
35 func Create(t *testing.T, path string, filesystem *MockFs) {
39 func Delete(t *testing.T, path string, filesystem *MockFs) {
46 func RemoveAll(t *testing.T, path string, filesystem *MockFs) {
53 func Move(t *testing.T, oldPath string, newPath string, filesystem *MockFs) {
60 func Link(t *testing.T, newPath string, oldPath string, filesystem *MockFs) {
72 func Read(t *testing.T, path string, filesystem *MockFs) string {
84 func ModTime(t *testing.T, path string, filesystem *MockFs) time.Time {
92 func SetReadable(t *testing.T, path string, readable bool, filesystem *MockFs) {
99 func SetReadErr(t *testing.T, path string, readErr error, filesystem *MockFs) {
/build/soong/finder/
Dfinder_test.go34 func newFinder(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams) *Finder {
38 func newFinderWithNumThreads(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThrea…
46 func newFinderAndErr(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThreads int) …
1082 func runFsReplacementTest(t *testing.T, fs1 *fs.MockFs, fs2 *fs.MockFs) {
/build/blueprint/pathtools/
Dfs.go41 func MockFs(files map[string][]byte) FileSystem { func