Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,973 for keys (0.16 sec)

  1. tests/multi_primary_keys_test.go

    	}
    
    	if name := DB.Dialector.Name(); name == "postgres" {
    		stmt := gorm.Statement{DB: DB}
    		stmt.Parse(&Blog{})
    		stmt.Schema.LookUpField("ID").Unique = true
    		stmt.Parse(&Tag{})
    		stmt.Schema.LookUpField("ID").Unique = true
    		// postgers only allow unique constraint matching given keys
    	}
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 12.8K bytes
    - Viewed (0)
  2. internal/config/identity/openid/jwks_test.go

    		t.Fatal("Unmarshal: ", err)
    	} else if len(jk.Keys) != 2 {
    		t.Fatalf("Expected 2 keys, got %d", len(jk.Keys))
    	}
    
    	keys := make([]crypto.PublicKey, len(jk.Keys))
    	for ii, jks := range jk.Keys {
    		var err error
    		keys[ii], err = jks.DecodePublicKey()
    		if err != nil {
    			t.Fatalf("Failed to decode key %d: %v", ii, err)
    		}
    	}
    
    	//nolint:gocritic
    	if key0, ok := keys[0].(*ecdsa.PublicKey); !ok {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 9.8K bytes
    - Viewed (0)
  3. internal/config/config_test.go

    	tests := []struct {
    		input          string
    		keys           []string
    		expectedFields map[string]struct{}
    	}{
    		// No keys present
    		{
    			input:          "",
    			keys:           []string{"comment"},
    			expectedFields: map[string]struct{}{},
    		},
    		// No keys requested for tokenizing
    		{
    			input:          `comment="Hi this is my comment ="`,
    			keys:           []string{},
    			expectedFields: map[string]struct{}{},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 18 22:55:17 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

                Entry<K, V> entry = requireNonNull(entryArray[i]);
                K key = entry.getKey();
                V value = entry.getValue();
                checkEntryNotNull(key, value);
                keys[i] = key;
                values[i] = value;
                checkNoConflict(comparator.compare(prevKey, key) != 0, "key", prevEntry, entry);
                prevKey = key;
              }
            }
            return new ImmutableSortedMap<>(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 52.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

          public Map<Object, Object> create(List<?> keys) {
            return ImmutableMap.copyOf(
                Lists.transform(keys, k -> Maps.immutableEntry(k, "dummy value")));
          }
        },
        BUILDER_PUT_ONE_BY_ONE {
          @Override
          public Map<Object, Object> create(List<?> keys) {
            ImmutableMap.Builder<Object, Object> builder = ImmutableMap.builder();
            for (Object k : keys) {
              builder.put(k, "dummy value");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  6. cmd/xl-storage-meta-inline.go

    		var key []byte
    		key, buf, err = msgp.ReadMapKeyZC(buf)
    		if err != nil {
    			return keys, err
    		}
    		if len(key) == 0 {
    			return keys, fmt.Errorf("xlMetaInlineData: key %d is length 0", i)
    		}
    		keys = append(keys, string(key))
    		// Skip data...
    		_, buf, err = msgp.ReadBytesZC(buf)
    		if err != nil {
    			return keys, err
    		}
    	}
    	return keys, nil
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  7. internal/store/batch_test.go

    		t.Fatal("failed to get the duplicxate item by key '99' after adding")
    	}
    	keys, items, err = batch.GetAll()
    	if err != nil {
    		t.Fatalf("unable to get the items from the batch; %v", err)
    	}
    	if len(items) != 1 {
    		t.Fatalf("Expected length of the batch items to be 1 but got %v", len(items))
    	}
    	if len(keys) != 1 {
    		t.Fatalf("Expected length of the batch keys to be 1 but got %v", len(items))
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

        List<? extends Entry<?, ?>> entries = Lists.newArrayList(map.entrySet());
        List<Object> keys = Lists.newArrayList(map.keySet());
        List<Object> values = Lists.newArrayList(map.values());
        assertEquals(2 * entries.size(), alternatingKeysAndValues.length);
        assertEquals(2 * keys.size(), alternatingKeysAndValues.length);
        assertEquals(2 * values.size(), alternatingKeysAndValues.length);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 21 14:41:51 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableBiMap.java

         * cause {@link #build} to fail.
         *
         * @since 19.0
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> put(Entry<? extends K, ? extends V> entry) {
          super.put(entry);
          return this;
        }
    
        /**
         * Associates all of the given map's keys and values in the built bimap. Duplicate keys or
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Dec 08 18:58:42 GMT 2023
    - 22K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/CacheLoader.java

       *
       * @param keys the unique, non-null keys whose values should be loaded
       * @return a map from each key in {@code keys} to the value associated with that key; <b>may not
       *     contain null values</b>
       * @throws Exception if unable to load the result
       * @throws InterruptedException if this method is interrupted. {@code InterruptedException} is
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 9.5K bytes
    - Viewed (0)
Back to top