Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 716 for keyA (0.46 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java

        for (K key : multimap().keySet()) {
          assertTrue(multimap().asMap().get(key) instanceof List);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testAsMapRemoveImplementsList() {
        List<K> keys = new ArrayList<>(multimap().keySet());
        for (K key : keys) {
          resetCollection();
          assertTrue(multimap().asMap().remove(key) instanceof List);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/encoding/json/bench_test.go

    	b.Run("4096", benchMarshalBytesError(4096))
    }
    
    func BenchmarkMarshalMap(b *testing.B) {
    	b.ReportAllocs()
    	m := map[string]int{
    		"key3": 3,
    		"key2": 2,
    		"key1": 1,
    	}
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			if _, err := Marshal(m); err != nil {
    				b.Fatal("Marshal:", err)
    			}
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:00:17 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. security/pkg/server/ca/authenticate/oidc_test.go

    	rsaKey, err := rsa.GenerateKey(rand.Reader, 512)
    	if err != nil {
    		t.Fatalf("failed to generate a private key: %v", err)
    	}
    	key := jose.JSONWebKey{Algorithm: string(jose.RS256), Key: rsaKey}
    	keySet := jose.JSONWebKeySet{}
    	keySet.Keys = append(keySet.Keys, key.Public())
    	server := httptest.NewServer(&jwksServer{key: keySet})
    	defer server.Close()
    
    	// Create a JWT authenticator
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. pkg/apis/core/validation/validation_test.go

    										{
    											Key:      "key",
    											Operator: metav1.LabelSelectorOpNotIn,
    											Values:   []string{"value1", "value2"},
    										},
    										{
    											Key:      "key2",
    											Operator: metav1.LabelSelectorOpIn,
    											Values:   []string{"value1"},
    										},
    										{
    											Key:      "key3",
    											Operator: metav1.LabelSelectorOpNotIn,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  5. 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
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/work_edit.txt

    cmp stdout go.work.want_json
    
    # go work edit -godebug
    cd $WORK/g
    cp go.work.start go.work
    go work edit -godebug key=value
    cmpenv go.work go.work.edit
    go work edit -dropgodebug key2
    cmpenv go.work go.work.edit
    go work edit -dropgodebug key
    cmpenv go.work go.work.start
    
    # go work edit -print -fmt
    env GOWORK=$GOPATH/src/unformatted
    go work edit -print -fmt
    cmp stdout $GOPATH/src/formatted
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. 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<>(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  8. src/context/context.go

    	return contextName(c.Context) + ".WithValue(" +
    		stringify(c.key) + ", " +
    		stringify(c.val) + ")"
    }
    
    func (c *valueCtx) Value(key any) any {
    	if c.key == key {
    		return c.val
    	}
    	return value(c.Context, key)
    }
    
    func value(c Context, key any) any {
    	for {
    		switch ctx := c.(type) {
    		case *valueCtx:
    			if key == ctx.key {
    				return ctx.val
    			}
    			c = ctx.Context
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  9. 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());
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. src/crypto/tls/auth.go

    // an unsupported private key.
    func unsupportedCertificateError(cert *Certificate) error {
    	switch cert.PrivateKey.(type) {
    	case rsa.PrivateKey, ecdsa.PrivateKey:
    		return fmt.Errorf("tls: unsupported certificate: private key is %T, expected *%T",
    			cert.PrivateKey, cert.PrivateKey)
    	case *ed25519.PrivateKey:
    		return fmt.Errorf("tls: unsupported certificate: private key is *ed25519.PrivateKey, expected ed25519.PrivateKey")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top