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

Function TestInferGitRepoRoot_InRepoRoot

cli/pkg/gitutil/gitcmdwrapper_test.go:310–316  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

308}
309
310func TestInferGitRepoRoot_InRepoRoot(t *testing.T) {
311 tempDir, _ := setupTestRepository(t)
312
313 root, err := InferGitRepoRoot(tempDir)
314 require.NoError(t, err, "InferGitRepoRoot failed on repo root")
315 assertPathsEqual(t, root, tempDir)
316}
317
318func TestInferGitRepoRoot_InNestedDir(t *testing.T) {
319 tempDir, _ := setupTestRepository(t)

Callers

nothing calls this directly

Calls 3

InferGitRepoRootFunction · 0.85
assertPathsEqualFunction · 0.85
setupTestRepositoryFunction · 0.70

Tested by

no test coverage detected