Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,021 for Constraint (0.25 sec)

  1. src/cmd/go/internal/imports/build.go

    // all tags are both true and false at the same time.
    func eval(x constraint.Expr, tags map[string]bool, prefer bool) bool {
    	switch x := x.(type) {
    	case *constraint.TagExpr:
    		return matchTag(x.Tag, tags, prefer)
    	case *constraint.NotExpr:
    		return !eval(x.X, tags, !prefer)
    	case *constraint.AndExpr:
    		return eval(x.X, tags, prefer) && eval(x.Y, tags, prefer)
    	case *constraint.OrExpr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 30 18:50:57 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  2. src/internal/types/testdata/fixedbugs/issue39723.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    // A constraint must be an interface; it cannot
    // be a type parameter, for instance.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 352 bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/podtopologyspread/filtering.go

    	podLabelSet := labels.Set(updatedPod.Labels)
    	for _, constraint := range s.Constraints {
    		if !constraint.Selector.Matches(podLabelSet) {
    			continue
    		}
    
    		if pl.enableNodeInclusionPolicyInPodTopologySpread &&
    			!constraint.matchNodeInclusionPolicies(preemptorPod, node, requiredSchedulingTerm) {
    			continue
    		}
    
    		k, v := constraint.TopologyKey, node.Labels[constraint.TopologyKey]
    		pair := topologyPair{key: k, value: v}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/ModelVersionParserTest.java

        private VersionParserException parseInvalid(String constraint) {
            try {
                versionParser.parseVersionConstraint(constraint);
                fail("expected exception for constraint " + constraint);
                return null;
            } catch (VersionParserException e) {
                return e;
            }
        }
    
        @Test
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue May 21 09:54:32 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenBomResolveIntegrationTest.groovy

                root(':', ':testproject:') {
                    module("group:bom:1.0:platform-runtime") {
                        constraint("group:moduleA:2.0", "group:moduleA:2.0")
                        noArtifacts()
                    }
                    module("group:bom2:1.0:platform-runtime") {
                        constraint("group:moduleA:2.0", "group:moduleA:2.0")
                        noArtifacts()
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  6. src/go/parser/testdata/typeset.go2

            // These are invalid and the type-checker will complain.
            _[~t] t
            _[~t|t] t
            _[t|~t] t
            _[~t|~t] t
    )
    
    type _[_ t, t] /* ERROR "missing type constraint" */ t
    type _[_ ~t, t] /* ERROR "missing type constraint" */ t
    type _[_ t, ~ /* ERROR "missing type parameter name" */ t] t
    type _[_ ~t, ~ /* ERROR "missing type parameter name" */ t] t
    
    type _[_ t|t, t /* ERROR "missing type parameter name" */ |t] t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/alignment/ForcingPlatformAlignmentTest.groovy

                        byAncestor()
                        configuration(expectedVariant)
                        constraint('org:core:2.7.9')
                        constraint('org:databind:2.7.9')
                        constraint('org:annotations:2.7.9')
                        constraint('org:kotlin:2.7.9')
                        noArtifacts()
                        module("org:platform:2.7.9")
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  8. platforms/jvm/java-platform/src/integTest/groovy/org/gradle/integtests/resolve/platforms/NativeAlignmentWithJavaPlatformResolveIntegrationTest.groovy

                platform.hasGradleMetadataRedirectionMarker()
                platform.parsedModuleMetadata.variant("apiElements") {
                    constraint("com.acme.foo:core:$v") {
                        exists()
                    }
                    constraint("com.acme.foo:lib:$v") {
                        exists()
                    }
                    noMoreDependencies()
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelVersionParser.java

         */
        @Nonnull
        VersionRange parseVersionRange(@Nonnull String range);
    
        /**
         * Parses the specified version constraint specification, for example "1.0" or "[1.0,2.0)".
         *
         * @param constraint the range specification to parse, must not be {@code null}
         * @return the parsed version constraint, never {@code null}
         * @throws VersionParserException if the range specification violates the syntax rules of this scheme
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ScriptHandlerScopeTest.kt

        fun `can declare classpath dependency constraints`() {
    
            val constraint = mock<DependencyConstraint>()
            val constraintHandler = mock<DependencyConstraintHandler> {
                on { add(any(), any()) } doReturn constraint
                on { add(any(), any(), any()) } doReturn constraint
            }
            val dependencies = newDependencyHandlerMock {
                on { constraints } doReturn constraintHandler
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 5.5K bytes
    - Viewed (0)
Back to top