Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestLRUClientSessionCache (0.86 sec)

  1. src/crypto/tls/handshake_client_test.go

    		c.t.Error(err)
    		return
    	}
    	stateBytes, err := state.Bytes()
    	if err != nil {
    		c.t.Error(err)
    		return
    	}
    	c.ticket, c.state = ticket, stateBytes
    }
    
    func TestLRUClientSessionCache(t *testing.T) {
    	// Initialize cache of capacity 4.
    	cache := NewLRUClientSessionCache(4)
    	cs := make([]ClientSessionState, 6)
    	keys := []string{"0", "1", "2", "3", "4", "5", "6"}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
Back to top