Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WantKeys (0.09 sec)

  1. pkg/serviceaccount/openidmetadata_test.go

    	var serveKeysTests = []struct {
    		Name     string
    		Keys     []interface{}
    		WantKeys []jose.JSONWebKey
    	}{
    		{
    			Name: "configured public keys",
    			Keys: []interface{}{
    				getPublicKey(rsaPublicKey),
    				getPublicKey(ecdsaPublicKey),
    			},
    			WantKeys: []jose.JSONWebKey{
    				{
    					Algorithm:                   "RS256",
    					Key:                         wantPubRSA,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 02 01:53:17 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/cache/lruexpirecache_test.go

    	}
    }
    
    // Note: Check keys before checking individual entries, because Get() changes
    // the eviction list.
    func assertKeys(t *testing.T, gotKeys, wantKeys []interface{}) {
    	t.Helper()
    	if diff := cmp.Diff(gotKeys, wantKeys); diff != "" {
    		t.Errorf("Wrong result for keys: diff (-got +want):\n%s", diff)
    	}
    }
    
    func TestSimpleGet(t *testing.T) {
    	c := NewLRUExpireCache(10)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top