/build/soong/finder/ |
D | finder_test.go | 31 func newFs() *fs.MockFs { 32 return fs.NewMockFs(map[string][]byte{}) 35 func newFinder(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams) *Finder { 39 func newFinderWithNumThreads(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThrea… 47 func newFinderAndErr(t *testing.T, filesystem *fs.MockFs, cacheParams CacheParams, numThreads int) … 85 fs.Create(t, filepath.Join(root, path), filesystem) 106 fs.AssertSameResponse(t, foundPaths, absoluteMatches) 116 fs.Create(t, filepath.Join(root, path), filesystem) 146 fs.AssertSameResponse(t, foundPaths, absoluteMatches) 211 fs.Create(t, filepath.Join(root, "findme.txt"), filesystem) [all …]
|
/build/blueprint/pathtools/ |
D | fs.go | 42 fs := &mockFs{ 51 fs.symlinks[strings.TrimSpace(tokens[0])] = strings.TrimSpace(tokens[1]) 55 fs.files[filepath.Clean(f)] = b 58 fs.dirs[dir] = true 61 fs.dirs[dir] = true 64 fs.dirs["."] = true 65 fs.dirs["/"] = true 67 for f := range fs.files { 68 fs.all = append(fs.all, f) 71 for d := range fs.dirs { [all …]
|
D | fs_test.go | 106 func runTestFs(t *testing.T, f func(t *testing.T, fs FileSystem, dir string)) { 111 run := func(t *testing.T, fs FileSystem) { 113 f(t, fs, "") 116 f(t, fs, absTestDataDir) 189 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) { 192 got, err := fs.IsDir(filepath.Join(dir, test.name)) 231 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) { 234 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), FollowSymlinks) 277 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) { 280 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), DontFollowSymlinks) [all …]
|
D | glob.go | 96 func startGlob(fs FileSystem, pattern string, excludes []string, 103 matches, deps, err := glob(fs, pattern, false, follow) 130 info, err = fs.Lstat(match) 132 info, err = fs.Stat(match) 153 func glob(fs FileSystem, pattern string, hasRecursive bool, 160 matches, err = fs.glob(pattern) 171 matchDirs, err = fs.glob(pattern) 192 dirMatches, dirs, err := glob(fs, dir, hasRecursive, follow) 198 isDir, err := fs.IsDir(m) 200 if isSymlink, _ := fs.IsSymlink(m); isSymlink { [all …]
|
/build/soong/android/ |
D | neverallow_test.go | 31 fs MockFS 46 fs: map[string][]byte{ 67 fs: map[string][]byte{ 80 fs: map[string][]byte{ 93 fs: map[string][]byte{ 104 fs: map[string][]byte{ 120 fs: map[string][]byte{ 136 fs: map[string][]byte{ 158 fs: map[string][]byte{ 176 fs: map[string][]byte{ [all …]
|
D | visibility_test.go | 12 fs MockFS 18 fs: MockFS{ 29 fs: MockFS{ 40 fs: MockFS{ 51 fs: MockFS{ 62 fs: MockFS{ 73 fs: MockFS{ 84 fs: MockFS{ 95 fs: MockFS{ 116 fs: MockFS{ [all …]
|
D | license_test.go | 24 fs MockFS 29 fs: map[string][]byte{ 43 fs: map[string][]byte{ 75 fs: map[string][]byte{ 94 fs: map[string][]byte{ 108 fs: map[string][]byte{ 134 fs: map[string][]byte{ 187 test.fs.AddToFixture(), 195 func testLicense(t *testing.T, fs MockFS, expectedErrors []string) {
|
D | package_test.go | 9 fs MockFS 15 fs: map[string][]byte{ 31 fs: map[string][]byte{ 45 fs: map[string][]byte{ 67 test.fs.AddToFixture(),
|
D | license_kind_test.go | 11 fs MockFS 16 fs: map[string][]byte{ 29 fs: map[string][]byte{ 47 fs: map[string][]byte{ 67 fs: map[string][]byte{ 105 test.fs.AddToFixture(),
|
D | fixture.go | 172 func (fs MockFS) Merge(extra map[string][]byte) { 175 if _, ok := fs[p]; ok { 178 fs[p] = c 203 func (fs MockFS) AddToFixture() FixturePreparer { 204 return FixtureMergeMockFs(fs) 242 func FixtureModifyMockFS(mutator func(fs MockFS)) FixturePreparer { 257 return FixtureModifyMockFS(func(fs MockFS) { 258 fs.Merge(mockFS) 266 return FixtureModifyMockFS(func(fs MockFS) { 268 if _, ok := fs[path]; ok { [all …]
|
D | licenses_test.go | 11 fs MockFS 22 fs: map[string][]byte{ 32 fs: map[string][]byte{ 43 fs: map[string][]byte{ 103 fs: map[string][]byte{ 176 fs: map[string][]byte{ 253 fs: map[string][]byte{ 264 fs: map[string][]byte{ 300 fs: map[string][]byte{ 311 fs: map[string][]byte{ [all …]
|
D | ninja_deps_test.go | 56 fs := MockFS{ 65 fs.AddToFixture(),
|
D | soong_config_modules_test.go | 189 run := func(t *testing.T, bp string, fs MockFS) { 292 fs.AddToFixture(), 316 func testConfigWithVendorVars(buildDir, bp string, fs map[string][]byte, vendorVars map[string]map[… 317 config := TestConfig(buildDir, nil, bp, fs)
|
/build/soong/bloaty/ |
D | bloaty_merger_test.py | 29 self.fs.create_file("file1.bloaty.csv", contents=csv_content) 44 self.fs.create_file("file1.bloaty.csv", contents=csv_content) 53 self.fs.create_file("files.lst", contents=file_list) 54 self.fs.create_file("file1.bloaty.csv", contents=file1_content) 55 self.fs.create_file("file2.bloaty.csv", contents=file2_content)
|
/build/make/tools/ |
D | fat16copy.py | 102 def __init__(self, fs, cluster, size=None): argument 109 self.fs = fs 114 self.size = fs.get_chain_size(cluster) 122 got = self.fs.read_file(self.start_cluster, self.idx, size) 128 self.fs.write_file(self.start_cluster, self.idx, data) 159 (dent, consumed) = self.backing.fs.read_dentry(self.backing) 181 new_dentry = dentry(self.backing.fs, attributes, shortname, ext, 226 chunk = self.backing.fs.allocate(size) if size > 0 else 0 233 data_file = fat_file(self.backing.fs, chunk, size) 247 chunk = self.backing.fs.allocate(1) [all …]
|
/build/soong/ui/metrics/proc/ |
D | status_linux_test.go | 14 fs := fs.NewMockFs(nil) 18 if err := fs.MkDirs(procDir); err != nil { 23 if err := fs.WriteFile(statusFilename, statusData, 0644); err != nil { 27 status, err := NewProcStatus(pid, fs)
|
D | status_darwin.go | 9 func NewProcStatus(pid int, _ fs.FileSystem) (*ProcStatus, error) {
|
/build/soong/bp2build/ |
D | build_conversion_test.go | 547 fs map[string]string 636 fs: map[string]string{ 663 fs: map[string]string{ 696 fs: map[string]string{ 803 fs: otherGenruleBp, 827 fs: otherGenruleBp, 854 fs: otherGenruleBp, 881 fs: otherGenruleBp, 908 fs := make(map[string][]byte) 912 for f, content := range testCase.fs { [all …]
|
/build/make/tools/fs_config/end_to_end_test/ |
D | run_test.sh | 10 ./config.fs 22 ./config.fs 33 ./config.fs 44 ./config.fs 55 ./config.fs 66 ./config.fs
|
/build/soong/sdk/ |
D | testing.go | 96 func testSdkWithFs(t *testing.T, bp string, fs android.MockFS) *android.TestResult { 100 fs.AddToFixture(), 250 fs := android.MockFS{} 252 fs[filepath.Join(snapshotSubDir, dest)] = nil 254 fs[filepath.Join(snapshotSubDir, "Android.bp")] = []byte(snapshotBuildInfo.androidBpContents) 260 snapshotPreparer := android.GroupFixturePreparers(sourcePreparers, fs.AddToFixture()) 284 removeSourceAndroidBp := android.FixtureModifyMockFS(func(fs android.MockFS) { 285 delete(fs, "Android.bp") 298 preferPrebuilts := android.FixtureModifyMockFS(func(fs android.MockFS) { 300 unpreferred := string(fs[snapshotBpFile]) [all …]
|
/build/soong/finder/fs/ |
D | Android.bp | 35 name: "soong-finder-fs", 36 pkgPath: "android/soong/finder/fs", 38 "fs.go",
|
/build/soong/java/ |
D | testing.go | 172 fs := make(map[string][]byte) 176 fs[fmt.Sprintf("prebuilts/sdk/%s/%s/%s.jar", level, scope, lib)] = nil 179 fs[fmt.Sprintf("prebuilts/sdk/%s/%s/api/%s.txt", level, scope, lib)] = nil 180 fs[fmt.Sprintf("prebuilts/sdk/%s/%s/api/%s-removed.txt", level, scope, lib)] = nil 184 fs[fmt.Sprintf("prebuilts/sdk/%s/public/framework.aidl", level)] = nil 186 return fs
|
/build/soong/zip/ |
D | zip.go | 80 fs pathtools.FileSystem member 87 fs: pathtools.OsFs, 136 f, err := b.fs.Open(name) 161 f, err := b.fs.Open(name) 223 fs pathtools.FileSystem member 272 fs: args.Filesystem, 275 if z.fs == nil { 276 z.fs = pathtools.OsFs 295 result, err := z.fs.Glob(s, nil, followSymlinks) 314 if exists, isDir, err := z.fs.Exists(fa.GlobDir); err != nil { [all …]
|
/build/soong/xml/ |
D | xml_test.go | 30 fs := android.MockFS{ 42 fs.AddToFixture(),
|
/build/soong/cc/ |
D | prebuilt_test.go | 30 func testPrebuilt(t *testing.T, bp string, fs android.MockFS, handlers ...android.FixturePreparer) … 33 fs.AddToFixture(), 339 fs := map[string][]byte{ 347 ctx := testPrebuilt(t, bp, fs) 362 ctx = testPrebuilt(t, bp, fs,
|