Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for Inits (0.04 sec)

  1. src/cmd/compile/internal/types2/resolver.go

    // another (constant) declaration.
    func (check *Checker) arity(pos syntax.Pos, names []*syntax.Name, inits []syntax.Expr, constDecl, inherited bool) {
    	l := len(names)
    	r := len(inits)
    
    	const code = WrongAssignCount
    	switch {
    	case l < r:
    		n := inits[l]
    		if inherited {
    			check.errorf(pos, code, "extra init expr at %s", n.Pos())
    		} else {
    			check.errorf(n, code, "extra init expr %s", n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api_test.go

    		// number of initializers must match
    		if len(info.InitOrder) != len(test.inits) {
    			t.Errorf("package %s: got %d initializers; want %d", name, len(info.InitOrder), len(test.inits))
    			continue
    		}
    
    		// initializers must match
    		for i, want := range test.inits {
    			got := info.InitOrder[i].String()
    			if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  3. src/runtime/extern.go

    	inittrace: setting inittrace=1 causes the runtime to emit a single line to standard
    	error for each package with init work, summarizing the execution time and memory
    	allocation. No information is printed for inits executed as part of plugin loading
    	and for packages without both user defined and compiler generated init work.
    	The format of this line is subject to change. Currently, it is:
    		init # @#ms, # ms clock, # bytes, # allocs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. src/go/types/api_test.go

    		// number of initializers must match
    		if len(info.InitOrder) != len(test.inits) {
    			t.Errorf("package %s: got %d initializers; want %d", name, len(info.InitOrder), len(test.inits))
    			continue
    		}
    
    		// initializers must match
    		for i, want := range test.inits {
    			got := info.InitOrder[i].String()
    			if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Units.java

                }
                return -1;
            }
    
            public void add(ScaledUnits<Q> units) {
                this.units.add(units);
                Collections.sort(this.units);
            }
        }
    
        private static class ScaledUnits<Q> extends Units<Q> {
            private final BaseUnits<Q> baseUnits;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Amount.java

            }
            int diff = units.compareTo(other.units);
            if (diff == 0) {
                return new Amount<>(value.add(other.value), units);
            }
            if (diff < 0) {
                return new Amount<>(value.add(other.units.scaleTo(other.value, units)), units);
            }
            return new Amount<>(units.scaleTo(value, other.units).add(other.value), other.units);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy

            5.9     | Fruit.apples  | 2      | Fruit.oranges
        }
    
        def "can add amounts with same units"() {
            expect:
            Amount.valueOf(a, units) + Amount.valueOf(b, units) == Amount.valueOf(c, units)
    
            where:
            a    | b     | c      | units
            0    | 0     | 0      | Fruit.apples
            1    | 2     | 3      | Fruit.apples
            1    | 2     | 3      | Fruit.oranges
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/DataAmount.java

    import java.math.BigDecimal;
    
    public class DataAmount {
        public static final Units<DataAmount> BYTES = Units.base(DataAmount.class, "B");
        public static final Units<DataAmount> KILO_BYTES = BYTES.times(1024, "kB");
        public static final Units<DataAmount> MEGA_BYTES = KILO_BYTES.times(1024, "MB");
        public static final Units<DataAmount> GIGA_BYTES = MEGA_BYTES.times(1024, "GB");
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Duration.java

    import java.math.BigDecimal;
    
    public class Duration {
        public static final Units<Duration> MILLI_SECONDS = Units.base(Duration.class, "ms");
        public static final Units<Duration> SECONDS = MILLI_SECONDS.times(1000, "s");
        public static final Units<Duration> MINUTES = SECONDS.times(60, "m");
        public static final Units<Duration> HOURS = MINUTES.times(60, "h");
    
        public static Amount<Duration> millis(long millis) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. src/internal/coverage/cformat/format.go

    		pkgs = append(pkgs, importpath)
    	}
    	slices.Sort(pkgs)
    	for _, importpath := range pkgs {
    		p := fm.pm[importpath]
    		units := make([]extcu, 0, len(p.unitTable))
    		for u := range p.unitTable {
    			units = append(units, u)
    		}
    		p.sortUnits(units)
    		for _, u := range units {
    			count := p.unitTable[u]
    			file := p.funcs[u.fnfid].file
    			if _, err := fmt.Fprintf(w, "%s:%d.%d,%d.%d %d %d\n",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top