(imgDir string, gen func() string)
| 463 | } |
| 464 | |
| 465 | func generateNonExistingImageName(imgDir string, gen func() string) string { |
| 466 | for { |
| 467 | name := gen() |
| 468 | if !exist(imgDir + name) { |
| 469 | return name |
| 470 | } |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | func ValidApplicationImageExt(ext string) bool { |
| 475 | switch strings.ToLower(ext) { |
no test coverage detected
searching dependent graphs…