(strlen int)
| 372 | } |
| 373 | |
| 374 | func randomString(strlen int) string { |
| 375 | const chars = "abcdefghijklmnopqrstuvwxyz0123456789" |
| 376 | result := make([]byte, strlen) |
| 377 | for i := 0; i < strlen; i++ { |
| 378 | result[i] = chars[rand.Intn(len(chars))] |
| 379 | } |
| 380 | return string(result) |
| 381 | } |
| 382 | |
| 383 | // testRandomExtension selects and returns one of the "ObjectExtensions" at random |
| 384 | func testRandomExtension() string { |
no outgoing calls
no test coverage detected