MCPcopy Create free account
hub / github.com/alibaba/open-code-review / TestResolveRepoDir_ValidGitRepo

Function TestResolveRepoDir_ValidGitRepo

cmd/opencodereview/git_test.go:81–90  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

79}
80
81func TestResolveRepoDir_ValidGitRepo(t *testing.T) {
82 dir := initTestGitRepo(t)
83 resolved, err := resolveRepoDir(dir)
84 if err != nil {
85 t.Fatalf("unexpected error: %v", err)
86 }
87 if resolved == "" {
88 t.Error("expected non-empty resolved path")
89 }
90}
91
92func TestResolveRepoDir_NotGitRepo(t *testing.T) {
93 dir := t.TempDir()

Callers

nothing calls this directly

Calls 2

initTestGitRepoFunction · 0.85
resolveRepoDirFunction · 0.85

Tested by

no test coverage detected