func checkDistribution(t *testing.T, data []*SRV, margin float64) { … } func testUniformity(t *testing.T, size int, margin float64) { … } func TestDNSSRVUniformity(t *testing.T) { … } func testWeighting(t *testing.T, margin float64) { … } func TestWeighting(t *testing.T) { … }