(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func TestCreateFromSubfolder(t *testing.T) { |
| 159 | t.Parallel() |
| 160 | repoRoot := bootstrapRepo(t) |
| 161 | sub := filepath.Join(repoRoot, "nested") |
| 162 | require.NoError(t, os.MkdirAll(sub, 0o755)) |
| 163 | |
| 164 | wt, err := Create(t.Context(), sub, "", WithRoot(t.TempDir())) |
| 165 | require.NoError(t, err) |
| 166 | assert.DirExists(t, wt.Dir) |
| 167 | assert.FileExists(t, filepath.Join(wt.Dir, "a.txt")) |
| 168 | } |
| 169 | |
| 170 | func TestCreateOutsideGitRepo(t *testing.T) { |
| 171 | t.Parallel() |
nothing calls this directly
no test coverage detected