Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testConfigs (0.15 sec)

  1. cmd/erasure-coding.go

    func erasureSelfTest() {
    	// Approx runtime ~1ms
    	var testConfigs [][2]uint8
    	for total := uint8(4); total < 16; total++ {
    		for data := total / 2; data < total; data++ {
    			parity := total - data
    			testConfigs = append(testConfigs, [2]uint8{data, parity})
    		}
    	}
    	got := make(map[[2]uint8]map[ErasureAlgo]uint64, len(testConfigs))
    	// Copied from output of fmt.Printf("%#v", got) at the end.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  2. internal/config/identity/openid/jwt_test.go

    	cfgGet := func(param string) string {
    		return testKvs.Get(param)
    	}
    
    	if testConfig.provider != nil {
    		t.Errorf("Empty config cannot have any provider!")
    	}
    
    	if err := testConfig.initializeProvider(cfgGet, http.DefaultTransport); err != nil {
    		t.Error(err)
    	}
    
    	if testConfig.provider == nil {
    		t.Errorf("keycloak provider must be initialized!")
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.3K bytes
    - Viewed (0)
Back to top