MCPcopy Create free account
hub / github.com/cwarden/git-add--interactive / TestIsInitialCommit

Function TestIsInitialCommit

internal/git/repository_test.go:45–57  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

43}
44
45func TestIsInitialCommit(t *testing.T) {
46 wd, err := os.Getwd()
47 if err != nil {
48 t.Fatal(err)
49 }
50
51 repo, err := NewRepository(wd)
52 if err != nil {
53 t.Skip("Not in a git repository, skipping test")
54 }
55
56 repo.IsInitialCommit()
57}

Callers

nothing calls this directly

Calls 2

IsInitialCommitMethod · 0.95
NewRepositoryFunction · 0.85

Tested by

no test coverage detected