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

Function TestInferGitRepoRoot_NotRepo

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

Source from the content-addressed store, hash-verified

328}
329
330func TestInferGitRepoRoot_NotRepo(t *testing.T) {
331 dir := t.TempDir()
332
333 root, err := InferGitRepoRoot(dir)
334 require.Error(t, err, ErrNotAGitRepository)
335 require.Equal(t, "", root, "expected empty root for error case")
336}
337
338func TestInferGitRepoRoot_SymlinkToRepoRoot(t *testing.T) {
339 tempDir, _ := setupTestRepository(t)

Callers

nothing calls this directly

Calls 3

InferGitRepoRootFunction · 0.85
TempDirMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected