Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 267 for Inits (0.04 sec)

  1. 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)
  2. src/cmd/compile/internal/ir/fmt.go

    	// block starting with the init statements.
    
    	// if we can just say "for" n->ninit; ... then do so
    	simpleinit := len(n.Init()) == 1 && len(n.Init()[0].Init()) == 0 && StmtWithInit(n.Op())
    
    	// otherwise, print the inits as separate statements
    	complexinit := len(n.Init()) != 0 && !simpleinit && exportFormat
    
    	// but if it was for if/for/switch, put in an extra surrounding block to limit the scope
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  3. 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)
  4. pkg/monitoring/units.go

    // limitations under the License.
    
    package monitoring
    
    // Unit encodes the standard name for describing the quantity
    // measured by a Metric (if applicable).
    type Unit string
    
    // Predefined units for use with the monitoring package.
    const (
    	None         Unit = "1"
    	Bytes        Unit = "By"
    	Seconds      Unit = "s"
    	Milliseconds Unit = "ms"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 901 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. platforms/core-runtime/build-operations/src/main/java/org/gradle/internal/operations/OperationProgressDetails.java

     */
    public class OperationProgressDetails {
        private final long progress;
        private final long total;
        private final String units;
    
        public OperationProgressDetails(long progress, long total, String units) {
            this.progress = progress;
            this.total = total;
            this.units = units;
        }
    
        public long getProgress() {
            return progress;
        }
    
        public long getTotal() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 14:19:43 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. subprojects/build-events/src/main/java/org/gradle/internal/build/event/types/DefaultStatusEvent.java

        private final long progress;
        private final long total;
        private final String units;
    
        public DefaultStatusEvent(long eventTime, DefaultFileDownloadDescriptor descriptor, long progress, long total, String units) {
            super(eventTime, descriptor);
            this.progress = progress;
            this.total = total;
            this.units = units;
        }
    
        @Override
        public String getDisplayName() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 21 23:09:50 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top