Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 769 for Keys (0.14 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 May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 12.8K bytes
    - Viewed (0)
  2. 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 28 19:28:10 GMT 2024
    - Last Modified: Thu Aug 18 22:55:17 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  3. 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 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 9.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

          keys.remove(1);
          keys.remove(2);
          assertFalse(keys.remove(null));
          assertFalse(keys.remove(6));
          assertFalse(keys.remove(-6));
          assertFalse(keys.removeAll(asList(null, 0, 15, 1500)));
          assertFalse(keys.retainAll(asList(null, 0, 15, 1500)));
          checkEmpty(keys);
          checkEmpty(cache);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMultisetFloodingTest.java

            return ImmutableMultiset.copyOf(keys);
          }
        },
        COPY_OF_ITERATOR {
          @Override
          public ImmutableMultiset<Object> create(List<?> keys) {
            return ImmutableMultiset.copyOf(keys.iterator());
          }
        },
        BUILDER_ADD_ENTRY_BY_ENTRY {
          @Override
          public ImmutableMultiset<Object> create(List<?> keys) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ArrayTable.java

      }
    
      /**
       * Associates the value {@code null} with the specified keys, assuming both keys are valid. If
       * either key is null or isn't among the keys provided during construction, this method has no
       * effect.
       *
       * <p>This method is equivalent to {@code put(rowKey, columnKey, null)} when both provided keys
       * are valid.
       *
       * @param rowKey row key of mapping to be erased
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.3K bytes
    - Viewed (0)
  7. internal/store/batch.go

    // Batch represents an ordered batch
    type Batch[K key, T any] struct {
    	keys  []K
    	items map[K]T
    	limit uint32
    
    	sync.Mutex
    }
    
    // Add adds the item to the batch
    func (b *Batch[K, T]) Add(key K, item T) error {
    	b.Lock()
    	defer b.Unlock()
    
    	if b.isFull() {
    		return ErrBatchFull
    	}
    
    	if _, ok := b.items[key]; !ok {
    		b.keys = append(b.keys, key)
    	}
    	b.items[key] = item
    
    	return nil
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/DocMapTest.java

            DocMap docMap = new DocMap(value);
            assertTrue(docMap.isEmpty());
            value.clear();
    
            List<String> keys = Arrays.asList("test_2", "test_0", "lang", "test_1");
            value.put(keys.get(0), true);
            value.put(keys.get(1), 1000);
            value.put(keys.get(2), "ja");
            value.put(keys.get(3), "str");
            docMap = new DocMap(value);
            assertFalse(docMap.isEmpty());
    
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  9. internal/store/batch_test.go

    	}
    	keys, items, err := batch.GetAll()
    	if err != nil {
    		t.Fatalf("unable to get the items from the batch; %v", err)
    	}
    	if len(items) != int(limit) {
    		t.Fatalf("Expected length of the batch items to be %v but got %v", limit, len(items))
    	}
    	if len(keys) != int(limit) {
    		t.Fatalf("Expected length of the batch keys to be %v but got %v", limit, len(items))
    	}
    	batchLen = batch.Len()
    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)
  10. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 21 14:41:51 GMT 2020
    - 6.5K bytes
    - Viewed (0)
Back to top