Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for testValue (0.07 sec)

  1. guava-tests/benchmark/com/google/common/cache/MapMakerComparisonBenchmark.java

      private final Cache<Object, Object> cacheNoStats = CacheBuilder.newBuilder().build();
    
      @BeforeExperiment
      void setUp() {
        map.put(TEST_KEY, TEST_VALUE);
        cache.put(TEST_KEY, TEST_VALUE);
        cacheNoStats.put(TEST_KEY, TEST_VALUE);
      }
    
      @Benchmark
      void concurrentHashMap(int rep) {
        for (int i = 0; i < rep; i++) {
          map.get(TEST_KEY);
        }
      }
    
      @Benchmark
      void cacheBuilder_stats(int rep) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 05 17:21:46 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  2. clause/values_test.go

    package clause_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestValues(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{
    				clause.Insert{},
    				clause.Values{
    					Columns: []clause.Column{{Name: "name"}, {Name: "age"}},
    					Values:  [][]interface{}{{"jinzhu", 18}, {"josh", 1}},
    				},
    			},
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 691 bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultimapValuesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      public void testValues() {
        List<V> expected = Lists.newArrayList();
        for (Entry<K, V> entry : getSampleElements()) {
          expected.add(entry.getValue());
        }
        assertEqualIgnoringOrder(expected, multimap().values());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultimapValuesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      public void testValues() {
        List<V> expected = Lists.newArrayList();
        for (Entry<K, V> entry : getSampleElements()) {
          expected.add(entry.getValue());
        }
        assertEqualIgnoringOrder(expected, multimap().values());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/EmptyImmutableTableTest.java

      public void testRowKeySet() {
        assertEquals(ImmutableSet.of(), INSTANCE.rowKeySet());
      }
    
      public void testRowMap() {
        assertEquals(ImmutableMap.of(), INSTANCE.rowMap());
      }
    
      public void testValues() {
        assertTrue(INSTANCE.values().isEmpty());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

      }
    
      public void testIsEmpty() {
        assertFalse(testTable.isEmpty());
      }
    
      public void testSize() {
        assertEquals(1, testTable.size());
      }
    
      public void testValues() {
        assertThat(testTable.values()).contains("blah");
      }
    
      @Override
      Iterable<ImmutableTable<Character, Integer, String>> getTestInstances() {
        return ImmutableSet.of(testTable);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

        Map<String, Integer> map = create();
        Set<String> keySet = map.keySet();
        assertTrue(keySet instanceof SynchronizedSet);
        assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex);
      }
    
      public void testValues() {
        Map<String, Integer> map = create();
        Collection<Integer> values = map.values();
        assertTrue(values instanceof SynchronizedCollection);
        assertSame(mutex, ((SynchronizedCollection<?>) values).mutex);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

        Map<String, Integer> map = create();
        Set<String> keySet = map.keySet();
        assertTrue(keySet instanceof SynchronizedSet);
        assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex);
      }
    
      public void testValues() {
        Map<String, Integer> map = create();
        Collection<Integer> values = map.values();
        assertTrue(values instanceof SynchronizedCollection);
        assertSame(mutex, ((SynchronizedCollection<?>) values).mutex);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java

      }
    
      public void testCellSet() {
        for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) {
          assertEquals(CELLS, testInstance.cellSet());
        }
      }
    
      public void testValues() {
        for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) {
          assertThat(testInstance.values()).containsExactly("foo", "bar", "baz").inOrder();
        }
      }
    
      public void testSize() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top