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

Function localFileHash

runtime/controller_test.go:1497–1506  ·  view source on GitHub ↗
(t *testing.T, rt *runtime.Runtime, id string, paths []string)

Source from the content-addressed store, hash-verified

1495}
1496
1497func localFileHash(t *testing.T, rt *runtime.Runtime, id string, paths []string) string {
1498 repo, release, err := rt.Repo(context.Background(), id)
1499 require.NoError(t, err)
1500 defer func() {
1501 release()
1502 }()
1503 localFileHash, err := repo.Hash(context.Background(), paths)
1504 require.NoError(t, err)
1505 return localFileHash
1506}

Callers 3

TestCompleteFunction · 0.85
TestSourceFunction · 0.85
TestWatchFunction · 0.85

Calls 2

RepoMethod · 0.80
HashMethod · 0.65

Tested by

no test coverage detected