Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 214 for rootsOf (0.12 sec)

  1. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/WatchedHierarchiesTest.groovy

            ]))
            then:
            rootsOf(watched) == [parent.absolutePath]
            1 * watchable.stream() >> Stream.of(parent, child, grandchild)
        }
    
        private static List<String> rootsOf(FileHierarchySet set) {
            def roots = []
            set.visitRoots((root -> roots.add(root)))
            return roots
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:38:01 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/FileHierarchySetTest.groovy

            def commonDir3 = parent.createDir("common/dir3")
    
            expect:
            rootsOf(from()) == []
            rootsOf(from(dir1)) == [dir1.absolutePath]
            rootsOf(from(dir1, dir1Child)) == [dir1.absolutePath]
            rootsOf(from(commonDir2)) == [commonDir2.absolutePath]
            rootsOf(from(dir1, commonDir2, commonDir3)) == [dir1.absolutePath, commonDir2.absolutePath, commonDir3.absolutePath]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:38 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/fingerprint/impl/DefaultCurrentFileCollectionFingerprint.java

        private final FileSystemSnapshot roots;
        private final ImmutableMultimap<String, HashCode> rootHashes;
        private final HashCode strategyConfigurationHash;
        private HashCode hash;
    
        public static CurrentFileCollectionFingerprint from(FileSystemSnapshot roots, FingerprintingStrategy strategy, @Nullable  FileCollectionFingerprint candidate) {
            if (roots == FileSystemSnapshot.EMPTY) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/openapi/resolver/refs.go

    func PopulateRefs(schemaOf func(ref string) (*spec.Schema, bool), rootRef string) (*spec.Schema, error) {
    	visitedRefs := sets.New[string]()
    	rootSchema, ok := schemaOf(rootRef)
    	visitedRefs.Insert(rootRef)
    	if !ok {
    		return nil, fmt.Errorf("internal error: cannot resolve Ref for root schema %q: %w", rootRef, ErrSchemaNotFound)
    	}
    	return populateRefs(schemaOf, visitedRefs, rootSchema)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 17:23:50 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. src/crypto/x509/name_constraints_test.go

    	},
    
    	// #14: roots can exclude subtrees and that doesn't affect other names.
    	{
    		roots: []constraintsSpec{
    			{
    				bad: []string{"dns:.example.com"},
    			},
    		},
    		intermediates: [][]constraintsSpec{
    			{
    				{},
    			},
    		},
    		leaf: leafSpec{
    			sans: []string{"dns:foo.com"},
    		},
    	},
    
    	// #15: roots exclusions are effective.
    	{
    		roots: []constraintsSpec{
    			{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 22:40:21 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  6. src/crypto/x509/root_unix.go

    				firstErr = err
    			}
    			continue
    		}
    		for _, fi := range fis {
    			data, err := os.ReadFile(directory + "/" + fi.Name())
    			if err == nil {
    				roots.AppendCertsFromPEM(data)
    			}
    		}
    	}
    
    	if roots.len() > 0 || firstErr == nil {
    		return roots, nil
    	}
    
    	return nil, firstErr
    }
    
    // readUniqueDirectoryEntries is like os.ReadDir but omits
    // symlinks that point within the directory.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:54:07 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/buildlist.go

    	drop := make(map[string]bool)
    	for _, m := range replace {
    		drop[m.Path] = true
    	}
    	var roots []module.Version
    	for _, m := range rs.rootModules {
    		if !drop[m.Path] {
    			roots = append(roots, m)
    		}
    	}
    	roots = append(roots, replace...)
    	gover.ModSort(roots)
    	return newRequirements(rs.pruning, roots, rs.direct)
    }
    
    // A ConstraintError describes inconsistent constraints in EditBuildList
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  8. platforms/jvm/jvm-services/src/main/java/org/gradle/jvm/toolchain/internal/LinuxInstallationSupplier.java

        @VisibleForTesting
        final File[] roots;
        private final OperatingSystem os;
    
        @Inject
        public LinuxInstallationSupplier() {
            this(OperatingSystem.current(), new File("/usr/lib/jvm"), new File("/usr/lib64/jvm"), new File("/usr/java"), new File("/usr/local/java"), new File("/opt/java"));
        }
    
        @VisibleForTesting
        LinuxInstallationSupplier(OperatingSystem os, File... roots) {
            this.roots = roots;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. src/cmd/go/internal/mvs/graph.go

    // may be in use.
    func NewGraph(cmp func(p, v1, v2 string) int, roots []module.Version) *Graph {
    	g := &Graph{
    		cmp:      cmp,
    		roots:    slices.Clip(roots),
    		required: make(map[module.Version][]module.Version),
    		isRoot:   make(map[module.Version]bool),
    		selected: make(map[string]string),
    	}
    
    	for _, m := range roots {
    		g.isRoot[m] = true
    		if g.cmp(m.Path, g.Selected(m.Path), m.Version) < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 02:52:19 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/inittask.go

    		ctxt.loader.SetAttrLocal(ctxt.mainInittasks, true)
    	case BuildModeShared:
    		// For a shared library, all packages are roots.
    		var roots []string
    		for _, lib := range ctxt.Library {
    			roots = append(roots, fmt.Sprintf("%s..inittask", objabi.PathToPrefix(lib.Pkg)))
    		}
    		ctxt.mainInittasks = ctxt.inittaskSym(roots, "go:shlib.inittasks")
    		// Make symbol local so multiple plugins don't clobber each other's inittask list.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top