(t *testing.T)
| 1801 | } |
| 1802 | |
| 1803 | func TestStartAndNextInSubdir(t *testing.T) { |
| 1804 | _, configuration := setup(t) |
| 1805 | |
| 1806 | setWorkingDir(tempDir + "/local/subdir") |
| 1807 | start(configuration) |
| 1808 | createFile(t, "example.txt", "contentIrrelevant") |
| 1809 | next(configuration) |
| 1810 | |
| 1811 | setWorkingDir(tempDir + "/localother/subdir") |
| 1812 | start(configuration) |
| 1813 | createFile(t, "example2.txt", "contentIrrelevant") |
| 1814 | createFile(t, "../example3.txt", "contentIrrelevant") |
| 1815 | next(configuration) |
| 1816 | |
| 1817 | setWorkingDir(tempDir + "/local/subdir") |
| 1818 | start(configuration) |
| 1819 | done(configuration) |
| 1820 | |
| 1821 | setWorkingDir(tempDir + "/local") |
| 1822 | assertFileExist(t, "subdir/example.txt") |
| 1823 | assertFileExist(t, "subdir/example2.txt") |
| 1824 | assertFileExist(t, "example3.txt") |
| 1825 | } |
| 1826 | |
| 1827 | func TestIsGitIdentifiesGitRepo(t *testing.T) { |
| 1828 | setup(t) |
nothing calls this directly
no test coverage detected