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

Function DeleteFiles

runtime/testruntime/reconcile.go:39–49  ·  view source on GitHub ↗
(t testing.TB, rt *runtime.Runtime, id string, files ...string)

Source from the content-addressed store, hash-verified

37}
38
39func DeleteFiles(t testing.TB, rt *runtime.Runtime, id string, files ...string) {
40 ctx := t.Context()
41 repo, release, err := rt.Repo(ctx, id)
42 require.NoError(t, err)
43 defer release()
44
45 for _, path := range files {
46 err := repo.Delete(ctx, path, false)
47 require.NoError(t, err)
48 }
49}
50
51func ReconcileParserAndWait(t testing.TB, rt *runtime.Runtime, id string) {
52 ReconcileAndWait(t, rt, id, runtime.GlobalProjectParserName)

Callers 4

TestCyclesWithTwoModelsFunction · 0.92
TestSelfReferenceFunction · 0.92

Calls 3

RepoMethod · 0.80
ContextMethod · 0.65
DeleteMethod · 0.65

Tested by 4

TestCyclesWithTwoModelsFunction · 0.74
TestSelfReferenceFunction · 0.74