createTestEnvironment creates a temporary testFolder and sets testConfig to testFolder/rclone.config.
(t *testing.T)
| 100 | // createTestEnvironment creates a temporary testFolder and |
| 101 | // sets testConfig to testFolder/rclone.config. |
| 102 | func createTestEnvironment(t *testing.T) { |
| 103 | //Set temporary folder for config and test data |
| 104 | tempFolder := t.TempDir() |
| 105 | testFolder = filepath.ToSlash(tempFolder) |
| 106 | |
| 107 | // Set path to temporary config file |
| 108 | testConfig = testFolder + "/rclone.config" |
| 109 | } |
| 110 | |
| 111 | var testFolder string |
| 112 | var testConfig string |
no outgoing calls
no test coverage detected
searching dependent graphs…