Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testWeighting (0.28 sec)

  1. src/net/dnsclient_test.go

    	testUniformity(t, 3, 0.10)
    	testUniformity(t, 10, 0.20)
    	testWeighting(t, 0.05)
    }
    
    func testWeighting(t *testing.T, margin float64) {
    	data := []*SRV{
    		{Target: "a", Weight: 60},
    		{Target: "b", Weight: 30},
    		{Target: "c", Weight: 10},
    	}
    	checkDistribution(t, data, margin)
    }
    
    func TestWeighting(t *testing.T) {
    	testWeighting(t, 0.05)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 12 16:30:11 UTC 2020
    - 1.5K bytes
    - Viewed (0)
Back to top