Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,690 for value$ (0.23 sec)

  1. src/sync/atomic/value.go

    package atomic
    
    import (
    	"unsafe"
    )
    
    // A Value provides an atomic load and store of a consistently typed value.
    // The zero value for a Value returns nil from [Value.Load].
    // Once [Value.Store] has been called, a Value must not be copied.
    //
    // A Value must not be copied after first use.
    type Value struct {
    	v any
    }
    
    // efaceWords is interface{} internal representation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/internal/trace/value.go

    package trace
    
    import "fmt"
    
    // Value is a dynamically-typed value obtained from a trace.
    type Value struct {
    	kind   ValueKind
    	scalar uint64
    }
    
    // ValueKind is the type of a dynamically-typed value from a trace.
    type ValueKind uint8
    
    const (
    	ValueBad ValueKind = iota
    	ValueUint64
    )
    
    // Kind returns the ValueKind of the value.
    //
    // It represents the underlying structure of the value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. src/runtime/metrics/value.go

    	KindFloat64Histogram
    )
    
    // Value represents a metric value returned by the runtime.
    type Value struct {
    	kind    ValueKind
    	scalar  uint64         // contains scalar values for scalar Kinds.
    	pointer unsafe.Pointer // contains non-scalar values.
    }
    
    // Kind returns the tag representing the kind of value this is.
    func (v Value) Kind() ValueKind {
    	return v.kind
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/build-option/src/test/groovy/org/gradle/internal/buildoption/DefaultInternalOptionsTest.groovy

            value2.explicit
    
            def value3 = options.getOption(new InternalFlag("prop3", true))
            !value3.get()
            value3.explicit
    
            def value4 = options.getOption(new InternalFlag("prop4", false))
            value4.get()
            value4.explicit
        }
    
        def "uses default for boolean option when system property is not set"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. src/runtime/pprof/label_test.go

    		}, {
    			m: labelMap{
    				"foo":             "bar",
    				"key1":            "value1",
    				"key2":            "value2",
    				"key3":            "value3",
    				"key4WithNewline": "\nvalue4",
    			},
    			expected: `{"foo":"bar", "key1":"value1", "key2":"value2", "key3":"value3", "key4WithNewline":"\nvalue4"}`,
    		},
    	} {
    		if got := tbl.m.String(); tbl.expected != got {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy

        def "can add amounts with different units of same quantity"() {
            def sum = Amount.valueOf(valueA, unitsA) + Amount.valueOf(valueB, unitsB)
            expect:
            sum == Amount.valueOf(valueC, unitsC)
            sum.toString() == Amount.valueOf(valueC, unitsC).toString()
    
            where:
            valueA | unitsA        | valueB | unitsB        | valueC  | unitsC
            0      | Fruit.apples  | 0      | Fruit.oranges | 0       | Fruit.apples
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. testing/internal-testing/src/test/groovy/org/gradle/test/precondition/PredicateFileTest.groovy

            value << ["value1", "value2"]
        }
    
        def "accept multiple values"() {
            when:
            checkValidCombinations(combination)
    
            then:
            noExceptionThrown()
    
            where:
            combination << [["value2", "value3"], ["value3", "value2"]]
        }
    
        def "throws exception when single value not found"() {
            when:
            checkValidCombinations(["nonexistent"])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

        def value
    
        TestDomainObject(String value) {
            this.value = value
        }
    
        @Override
        boolean equals(Object o) {
            return o.value == value
        }
    
        @Override
        int hashCode() {
            return value.hashCode()
        }
    
        void attach(ClassMetaDataRepository<TestDomainObject> repository) {
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go

    				if s.Value[0] == 0 {
    					return nil, nil, fmt.Errorf("parsing sample %s: second value must be non-zero", line)
    				}
    				s.NumLabel = map[string][]int64{"bytes": {s.Value[1] / s.Value[0]}}
    				s.Value[0], s.Value[1] = scaleHeapSample(s.Value[0], s.Value[1], javaHeapzSamplingRate)
    			case "contention":
    				if period := p.Period; period != 0 {
    					s.Value[0] = s.Value[0] * p.Period
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultCompatibilityRuleChainTest.groovy

            given:
            details.consumerValue >> "value1"
            details.producerValue >> "value2"
            ruleChain.add(BrokenRule)
    
            when:
            ruleChain.execute(details)
    
            then:
            def e = thrown(AttributeMatchException)
            e.message == 'Could not determine whether value value2 is compatible with value value1 using DefaultCompatibilityRuleChainTest.BrokenRule.'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top