Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 71 for newValue2 (0.14 sec)

  1. pkg/kubelet/winstats/perfcounter_nodestats_test.go

    		{cpuValue: uint64(100), expected: uint64(4000000000)},
    	}
    	var cpuCores = 4
    
    	for _, tc := range testCases {
    		p := perfCounterNodeStatsClient{}
    		newValue := p.convertCPUValue(cpuCores, tc.cpuValue)
    		assert.Equal(t, tc.expected, newValue)
    	}
    }
    
    func TestGetCPUUsageNanoCores(t *testing.T) {
    	// Scaled expected unit test values by the frequency the CPU perf counters are polled.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       * iterator tests.
       *
       * @return the new container instance
       * @param newValue the new container instance
       */
      @CanIgnoreReturnValue
      protected C resetContainer(C newValue) {
        container = newValue;
        return container;
      }
    
      /**
       * @see #expectContents(java.util.Collection)
       * @param elements expected contents of {@link #container}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GroovyInteroperabilityIntegrationTest.kt

            withBuildScript(
                """
                apply(from = "groovy.gradle")
    
                extensions["myextension"].withGroovyBuilder {
                    getProperty("server")
                    setProperty("server", "newValue")
                    setMetaClass(getMetaClass())
                    invokeMethod("configureServerName", "myservername")
                }
                """
            )
    
            build()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dependencies/DefaultMinimalDependency.java

        protected void validateMutation() {
            throw new UnsupportedOperationException("Minimal dependencies are immutable.");
        }
    
        @Override
        protected void validateMutation(Object currentValue, Object newValue) {
            validateMutation();
        }
    
        @Override
        public void copyTo(AbstractExternalModuleDependency target) {
            super.copyTo(target);
        }
    
        // Intentionally changes to the mutable version.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java

         *
         * @param key the key under which to store the session data, must not be {@code null}
         * @param oldValue the expected data currently associated with the key, may be {@code null}
         * @param newValue the data to associate with the key, may be {@code null} to remove the mapping
         * @return {@code true} if the key mapping was successfully updated from the old value to the new value,
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:09 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/RegularImmutableTable.java

       */
      final void checkNoDuplicate(R rowKey, C columnKey, @CheckForNull V existingValue, V newValue) {
        checkArgument(
            existingValue == null,
            "Duplicate key: (row=%s, column=%s), values: [%s, %s].",
            rowKey,
            columnKey,
            newValue,
            existingValue);
      }
    
      // redeclare to satisfy our test for b/310253115
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/WorkInProgressRenderer.java

                unshow(operation.getParent());
            }
    
            // No more unused label? Try to resize.
            if (unusedProgressLabels.isEmpty()) {
                int newValue = operationIdToAssignedLabels.size() + 1;
                resizeTo(newValue);
                // At this point, the work-in-progress area may or may not have been resized due to maximum size constraint.
            }
    
            // Try to use a new label
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/RegularImmutableTable.java

       */
      final void checkNoDuplicate(R rowKey, C columnKey, @CheckForNull V existingValue, V newValue) {
        checkArgument(
            existingValue == null,
            "Duplicate key: (row=%s, column=%s), values: [%s, %s].",
            rowKey,
            columnKey,
            newValue,
            existingValue);
      }
    
      // redeclare to satisfy our test for b/310253115
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/ObjectHolder.java

         */
        T get();
    
        /**
         * Sets the value for this cache. An exclusive lock is held while setting the value.
         */
        void set(T newValue);
    
        /**
         * Replaces the value for this cache.
         *
         * An exclusive lock is held while the update action is executing.
         * The result of the update is returned.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        Integer oldValue = map.putInstance(Integer.class, Integer.valueOf(7));
        assertEquals(5, (int) oldValue);
    
        Integer newValue = map.getInstance(Integer.class);
        assertEquals(7, (int) newValue);
        assertEquals(7, (int) map.getInstance(TypeToken.of(Integer.class)));
    
        // Won't compile: map.putInstance(Double.class, new Long(42));
      }
    
      public void testNull() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top