Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 857 for valueDoc (0.18 sec)

  1. src/cmd/doc/pkg.go

    					header = true
    				}
    				pkg.valueDoc(value, printed)
    				break
    			}
    		}
    	}
    }
    
    // varsDoc prints all var documentation, if any, including a header.
    // Printed is the valueDoc registry.
    func (pkg *Package) varsDoc(printed map[*ast.GenDecl]bool) {
    	var header bool
    	for _, value := range pkg.doc.Vars {
    		// Constants and variables come in groups, and valueDoc prints
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/fix/cftype.go

    				if f.Type() == exprType {
    					if r := badNils[f.Interface()]; r != nil {
    						f.Set(reflect.ValueOf(r))
    						changed = true
    					}
    				}
    				if f.Type() == exprSliceType {
    					for j := 0; j < f.Len(); j++ {
    						e := f.Index(j)
    						if r := badNils[e.Interface()]; r != nil {
    							e.Set(reflect.ValueOf(r))
    							changed = true
    						}
    					}
    				}
    			}
    		})
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:25:49 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. utils/tests/utils.go

    				if reflect.ValueOf(got).Len() == reflect.ValueOf(expect).Len() {
    					for i := 0; i < reflect.ValueOf(got).Len(); i++ {
    						name := fmt.Sprintf(reflect.ValueOf(got).Type().Name()+" #%v", i)
    						t.Run(name, func(t *testing.T) {
    							AssertEqual(t, reflect.ValueOf(got).Index(i).Interface(), reflect.ValueOf(expect).Index(i).Interface())
    						})
    					}
    				} else {
    					name := reflect.ValueOf(got).Type().Elem().Name()
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Mar 10 09:21:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. src/reflect/benchmark_test.go

    	BytesArray   Value
    	SliceAny     Value
    	MapStringAny Value
    }{
    	Bool:         ValueOf(new(bool)).Elem(),
    	String:       ValueOf(new(string)).Elem(),
    	Bytes:        ValueOf(new([]byte)).Elem(),
    	NamedBytes:   ValueOf(new(namedBytes)).Elem(),
    	BytesArray:   ValueOf(new([32]byte)).Elem(),
    	SliceAny:     ValueOf(new([]any)).Elem(),
    	MapStringAny: ValueOf(new(map[string]any)).Elem(),
    }
    
    var sinkAll struct {
    	RawBool   bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  6. test/escape_reflect.go

    	mv := reflect.ValueOf(m)
    	kv := reflect.ValueOf(k) // ERROR "k escapes to heap"
    	ev := reflect.ValueOf(e) // ERROR "e escapes to heap"
    	mv.SetMapIndex(kv, ev)
    }
    
    // Unfortunate: k doesn't need to escape.
    func mapdelete(m map[string]string, k string) { // ERROR "m does not escape" "leaking param: k$"
    	mv := reflect.ValueOf(m)
    	kv := reflect.ValueOf(k) // ERROR "k escapes to heap"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  7. src/reflect/set_test.go

    		// direct
    		m := make(map[int]int)
    		mv := ValueOf(m)
    		mv.SetMapIndex(ValueOf(1), ValueOf(2))
    		x, ok := m[1]
    		if x != 2 {
    			t.Errorf("#1 after SetMapIndex(1,2): %d, %t (map=%v)", x, ok, m)
    		}
    		if n := mv.MapIndex(ValueOf(1)).Interface().(int); n != 2 {
    			t.Errorf("#1 MapIndex(1) = %d", n)
    		}
    	}
    	{
    		// convert interface key
    		m := make(map[any]int)
    		mv := ValueOf(m)
    		mv.SetMapIndex(ValueOf(1), ValueOf(2))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 13:56:11 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

        new RoundToDoubleTester(halfMinDouble)
            .roundUnnecessaryShouldThrow()
            .setExpectation(-Double.MIN_VALUE, UP, FLOOR, HALF_UP)
            .setExpectation(-0.0, HALF_EVEN, CEILING, DOWN, HALF_DOWN)
            .test();
      }
    
      public void testRoundToDouble_smallPositive() {
        new RoundToDoubleTester(BigDecimal.valueOf(16)).setExpectation(16.0, values()).test();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        assertEquals(Integer.valueOf(20), map.get(10));
        assertEquals(Integer.valueOf(0), map.get(20));
        assertEquals(Integer.valueOf(1), map.get(30));
        assertEquals(Integer.valueOf(2), map.get(54));
        assertEquals(Integer.valueOf(3), map.get(443));
        assertEquals(Integer.valueOf(4), map.get(1));
        assertEquals(Integer.valueOf(5), cache.get(6));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Aug 05 17:21:46 UTC 2022
    - 15.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        assertEquals(Integer.valueOf(20), map.get(10));
        assertEquals(Integer.valueOf(0), map.get(20));
        assertEquals(Integer.valueOf(1), map.get(30));
        assertEquals(Integer.valueOf(2), map.get(54));
        assertEquals(Integer.valueOf(3), map.get(443));
        assertEquals(Integer.valueOf(4), map.get(1));
        assertEquals(Integer.valueOf(5), cache.get(6));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 15K bytes
    - Viewed (0)
Back to top