MCPcopy Index your code
hub / github.com/rilldata/rill / makeRepo

Function makeRepo

runtime/parser/parser_test.go:2522–2533  ·  view source on GitHub ↗
(t testing.TB, files map[string]string)

Source from the content-addressed store, hash-verified

2520}
2521
2522func makeRepo(t testing.TB, files map[string]string) drivers.RepoStore {
2523 root := t.TempDir()
2524 handle, err := drivers.Open("file", "", "default", map[string]any{"dsn": root}, storage.MustNew(root, nil), activity.NewNoopClient(), zap.NewNop())
2525 require.NoError(t, err)
2526
2527 repo, ok := handle.AsRepoStore("")
2528 require.True(t, ok)
2529
2530 putRepo(t, repo, files)
2531
2532 return repo
2533}
2534
2535func putRepo(t testing.TB, repo drivers.RepoStore, files map[string]string) {
2536 for path, data := range files {

Callers 15

TestExploreFieldSelectorFunction · 0.85
TestRillYAMLFunction · 0.85
TestRillYAMLFeaturesFunction · 0.85
TestCompleteFunction · 0.85
TestLocationErrorFunction · 0.85
TestReparseFunction · 0.85
TestReparseNameCollisionFunction · 0.85
TestReparseRillYAMLFunction · 0.85
TestRefInferrenceFunction · 0.85
TestConnectorRefFunction · 0.85
TestConnectorDeletionFunction · 0.85

Calls 6

OpenFunction · 0.92
MustNewFunction · 0.92
NewNoopClientFunction · 0.92
putRepoFunction · 0.85
TempDirMethod · 0.65
AsRepoStoreMethod · 0.65

Tested by

no test coverage detected