(file string)
| 48 | } |
| 49 | |
| 50 | func createExecutableFile(file string) error { |
| 51 | if _, err := os.Create(file); err != nil { |
| 52 | return fmt.Errorf("create: %w", err) |
| 53 | } |
| 54 | |
| 55 | _ = os.Chmod(file, 0o777) |
| 56 | |
| 57 | return nil |
| 58 | } |
| 59 | |
| 60 | func TestRecursiveGetExecutablePaths(t *testing.T) { |
| 61 | dir, err := prepareTestDirTree() |
no test coverage detected