MCPcopy Create free account
hub / github.com/rilldata/rill / RenameFile

Function RenameFile

runtime/testruntime/reconcile.go:30–37  ·  view source on GitHub ↗
(t testing.TB, rt *runtime.Runtime, id, from, to string)

Source from the content-addressed store, hash-verified

28}
29
30func 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
39func DeleteFiles(t testing.TB, rt *runtime.Runtime, id string, files ...string) {
40 ctx := t.Context()

Callers 3

TestRenameFunction · 0.92
TestRenameToOtherFunction · 0.92
TestRenameReconcilingFunction · 0.92

Calls 3

RepoMethod · 0.80
ContextMethod · 0.65
RenameMethod · 0.65

Tested by 3

TestRenameFunction · 0.74
TestRenameToOtherFunction · 0.74
TestRenameReconcilingFunction · 0.74