(t *testing.T)
| 165 | } |
| 166 | |
| 167 | func TestCalcParticipantPeers(t *testing.T) { |
| 168 | for i := 4; i < 100; i++ { |
| 169 | testCalcParticipantPeers(t, i, (i-1)/3) |
| 170 | } |
| 171 | for i := 5; i < 100; i++ { |
| 172 | testCalcParticipantPeers(t, i, (i-1)/4) |
| 173 | } |
| 174 | for i := 0; i < 10000; i++ { |
| 175 | testCalcParticipantPeers(t, 7, 2) |
| 176 | testCalcParticipantPeers(t, 4, 1) |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | func testCalcParticipantPeers(t *testing.T, n, c int) { |
| 181 | server := constructServer() |
nothing calls this directly
no test coverage detected