Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 846 for Map (0.13 sec)

  1. internal/crypto/metadata_test.go

    var isMultipartTests = []struct {
    	Metadata  map[string]string
    	Multipart bool
    }{
    	{Multipart: true, Metadata: map[string]string{MetaMultipart: ""}},                          // 0
    	{Multipart: true, Metadata: map[string]string{"X-Minio-Internal-Encrypted-Multipart": ""}}, // 1
    	{Multipart: true, Metadata: map[string]string{MetaMultipart: "some-value"}},                // 2
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  2. tests/create_test.go

    		t.Fatalf("failed to create data from map, got error: %v", err)
    	}
    
    	var result1 User
    	if err := DB.Where("name = ?", "create_from_map_1").First(&result1).Error; err != nil || result1.Age != 18 {
    		t.Fatalf("failed to create from map, got error %v", err)
    	}
    
    	datas := []map[string]interface{}{
    		{"Name": "create_from_map_2", "Age": 19},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

      }
    
      public void testTransformSingletonMapEquality() {
        Map<String, String> map =
            Maps.transformValues(ImmutableMap.of("a", 1), Functions.toStringFunction());
        Map<String, String> expected = ImmutableMap.of("a", "1");
        assertMapsEqual(expected, map);
        assertEquals(expected.get("a"), map.get("a"));
      }
    
      public void testTransformIdentityFunctionEquality() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheTesting.java

      }
    
      static void checkEmpty(ConcurrentMap<?, ?> map) {
        checkEmpty(map.keySet());
        checkEmpty(map.values());
        checkEmpty(map.entrySet());
        assertEquals(ImmutableMap.of(), map);
        assertEquals(ImmutableMap.of().hashCode(), map.hashCode());
        assertEquals(ImmutableMap.of().toString(), map.toString());
    
        if (map instanceof LocalCache) {
          LocalCache<?, ?> cchm = (LocalCache<?, ?>) map;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

      public void testForMapSerialization() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("foo", 1);
        map.put("bar", 2);
        Multimap<String, Integer> multimapView = Multimaps.forMap(map);
        SerializableTester.reserializeAndAssert(multimapView);
      }
    
      public void testForMapRemoveAll() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("cow", 3);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 39.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableMap.java

       *
       * @throws NullPointerException if any key or value in {@code map} is null
       */
      public static <K, V> ImmutableMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        if ((map instanceof ImmutableMap) && !(map instanceof SortedMap)) {
          @SuppressWarnings("unchecked") // safe since map is not writable
          ImmutableMap<K, V> kvMap = (ImmutableMap<K, V>) map;
          if (!kvMap.isPartialView()) {
            return kvMap;
          }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 44.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MapMaker.java

     * present in the map to be reclaimed by the garbage collector. Entries with reclaimed keys or
     * values may be removed from the map on each map modification or on occasional map accesses; such
     * entries may be counted by {@link Map#size}, but will never be visible to read or write
     * operations. A partially-reclaimed entry is never exposed to the user. Any {@link Map.Entry}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(map.isEmpty(), is(false));
            assertThat(map.get(Foo.class.getTypeParameters()[0]), is(sameClass(Object.class)));
        }
    
        /**
         * @throws Exception
         */
        public void testGenericMethod() throws Exception {
            final Map<TypeVariable<?>, Type> map = GenericsUtil.getTypeVariableMap(Fuga.class);
            assertThat(map, is(notNullValue()));
            assertThat(map.isEmpty(), is(true));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheTesting.java

      }
    
      static void checkEmpty(ConcurrentMap<?, ?> map) {
        checkEmpty(map.keySet());
        checkEmpty(map.values());
        checkEmpty(map.entrySet());
        assertEquals(ImmutableMap.of(), map);
        assertEquals(ImmutableMap.of().hashCode(), map.hashCode());
        assertEquals(ImmutableMap.of().toString(), map.toString());
    
        if (map instanceof LocalCache) {
          LocalCache<?, ?> cchm = (LocalCache<?, ?>) map;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

                new TestStringMapGenerator() {
                  @Override
                  protected Map<String, String> create(Entry<String, String>[] entries) {
                    Map<String, String> map = populate(new HashMap<String, String>(), entries);
                    return Collections.checkedMap(map, String.class, String.class);
                  }
                })
            .named("checkedMap/HashMap")
            .withFeatures(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 17K bytes
    - Viewed (0)
Back to top