(n, maxMessageLength int)
| 162 | } |
| 163 | |
| 164 | func randMessages(n, maxMessageLength int) map[string]struct{} { |
| 165 | msgs := make(map[string]struct{}) |
| 166 | for i := 0; i < n; i++ { |
| 167 | m := randString(randInt(maxMessageLength)) |
| 168 | if _, ok := msgs[m]; ok { |
| 169 | i-- |
| 170 | continue |
| 171 | } |
| 172 | msgs[m] = struct{}{} |
| 173 | } |
| 174 | return msgs |
| 175 | } |
| 176 | |
| 177 | func assertSuccess(t *testing.T, err error) { |
| 178 | t.Helper() |
no test coverage detected
searching dependent graphs…