(t testing.TB, rt *runtime.Runtime, id, from, to string)
| 28 | } |
| 29 | |
| 30 | func RenameFile(t testing.TB, rt *runtime.Runtime, id, from, to string) { |
| 31 | ctx := t.Context() |
| 32 | repo, release, err := rt.Repo(ctx, id) |
| 33 | require.NoError(t, err) |
| 34 | defer release() |
| 35 | |
| 36 | require.NoError(t, repo.Rename(ctx, from, to)) |
| 37 | } |
| 38 | |
| 39 | func DeleteFiles(t testing.TB, rt *runtime.Runtime, id string, files ...string) { |
| 40 | ctx := t.Context() |