Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,562 for nvalid (0.2 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/rules/DefaultRuleActionValidatorTest.groovy

        }
    
        def "accepts valid type"() {
            def ruleValidator = new DefaultRuleActionValidator(String)
            def ruleAction = Stub(RuleAction) {
                getInputTypes() >> { [String] }
            }
    
            expect:
            ruleValidator.validate(ruleAction) == ruleAction
        }
    
        def "accepts valid type with multiple valid types"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionStatsTest.groovy

            nonHeapStats.maxSizeInBytes == 1000
            nonHeapStats.usedPercent == 70
        }
    
        def "reports invalid when maximum memory cannot be determined"() {
            expect:
            !stats.valid
            stats.maxSizeInBytes == -1
    
            where:
            stats << [
                    GarbageCollectionStats.forHeap(withoutMaxMemory(heapEvents)),
                    GarbageCollectionStats.forNonHeap(withoutMaxMemory(nonHeapEvents))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/runtime/cgo/handle.go

    	}
    
    	handles.Store(h, v)
    	return Handle(h)
    }
    
    // Value returns the associated Go value for a valid handle.
    //
    // The method panics if the handle is invalid.
    func (h Handle) Value() any {
    	v, ok := handles.Load(uintptr(h))
    	if !ok {
    		panic("runtime/cgo: misuse of an invalid Handle")
    	}
    	return v
    }
    
    // Delete invalidates a handle. This method should only be called once
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/struct.go

    			check.recordDef(ident, fld)
    		}
    	}
    
    	// addInvalid adds an embedded field of invalid type to the struct for
    	// fields with errors; this keeps the number of struct fields in sync
    	// with the source as long as the fields are _ or have different names
    	// (go.dev/issue/25627).
    	addInvalid := func(ident *syntax.Name) {
    		typ = Typ[Invalid]
    		tag = ""
    		add(ident, true)
    	}
    
    	var prev syntax.Expr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. pkg/apis/resource/validation/validation_resourceslice_test.go

    		},
    		"invalid-name-update": {
    			oldResourceSlice: validResourceSlice,
    			update: func(slice *resource.ResourceSlice) *resource.ResourceSlice {
    				slice.Name += "-update"
    				return slice
    			},
    			wantFailures: field.ErrorList{field.Invalid(field.NewPath("metadata", "name"), name+"-update", "field is immutable")},
    		},
    		"invalid-update-nodename": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/library/ip_test.go

    			expr:         `isIP("192.168.0.1.0")`,
    			expectResult: falseVal,
    		},
    		{
    			name:         "ip.isCanonical valid ipv4",
    			expr:         `ip.isCanonical("127.0.0.1")`,
    			expectResult: trueVal,
    		},
    		{
    			name:             "ip.isCanonical invalid ipv4",
    			expr:             `ip.isCanonical("127.0.0.1.0")`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:07 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  7. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishIdentifierValidationIntegTest.groovy

            failure.assertHasCause "Failed to publish publication 'maven' to repository 'maven'"
            failure.assertHasCause "Invalid publication 'maven': groupId cannot be empty"
        }
    
        def "fails with reasonable error message for invalid #invalidComponent name"() {
            settingsFile << "rootProject.name = 'invalid'"
            buildFile << """
                apply plugin: 'maven-publish'
                apply plugin: 'java'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. platforms/software/resources-s3/src/test/groovy/org/gradle/internal/resource/transport/aws/s3/S3ConnectionPropertiesTest.groovy

        }
    
        def "should report invalid uri"() {
            when:
            s3ConnectionProperties.configureEndpoint('httpdasd%:/ads')
            then:
            def ex = thrown(IllegalArgumentException)
            ex.message == "System property [org.gradle.s3.endpoint=httpdasd%:/ads]  must be a valid URI"
        }
    
        def "should allow case insensitive schemes"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. src/go/version/version.go

    // Invalid versions, including the empty string, compare less than
    // valid versions and equal to each other.
    // The language version "go1.21" compares less than the
    // release candidate and eventual releases "go1.21rc1" and "go1.21.0".
    func Compare(x, y string) int {
    	return gover.Compare(stripGo(x), stripGo(y))
    }
    
    // IsValid reports whether the version x is valid.
    func IsValid(x string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 19:56:48 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperUpgradeIntegrationTest.groovy

        }
    
        def "prints helpful error message on invalid version argument format: #badVersion"() {
            given:
            prepareWrapper()
    
            expect:
            def failure = wrapperExecuter.withTasks("wrapper", "--gradle-version", badVersion).runWithFailure()
    
            and:
            failure.assertHasDescription("Invalid version specified for argument '--gradle-version'")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top