(t *testing.T)
| 197 | } |
| 198 | |
| 199 | func TestCreateRejectsDuplicateName(t *testing.T) { |
| 200 | t.Parallel() |
| 201 | dir := bootstrapRepo(t) |
| 202 | root := t.TempDir() |
| 203 | |
| 204 | _, err := Create(t.Context(), dir, "dup", WithRoot(root)) |
| 205 | require.NoError(t, err) |
| 206 | |
| 207 | _, err = Create(t.Context(), dir, "dup", WithRoot(root)) |
| 208 | assert.ErrorIs(t, err, ErrInvalidName) |
| 209 | } |
| 210 | |
| 211 | func TestStatusClean(t *testing.T) { |
| 212 | t.Parallel() |
nothing calls this directly
no test coverage detected