MCPcopy Create free account
hub / github.com/git-bug/git-bug / makeTestContext

Function makeTestContext

entity/dag/common_test.go:106–110  ·  view source on GitHub ↗

* Identities + repo + definition */

()

Source from the content-addressed store, hash-verified

104*/
105
106func makeTestContext() (repository.ClockedRepo, identity.Interface, identity.Interface, entity.Resolvers, Definition) {
107 repo := repository.NewMockRepo()
108 id1, id2, resolvers, def := makeTestContextInternal(repo)
109 return repo, id1, id2, resolvers, def
110}
111
112func makeTestContextGoGit(t *testing.T) (repository.ClockedRepo, identity.Interface, identity.Interface, entity.Resolvers, Definition) {
113 repo := repository.CreateGoGitTestRepo(t, false)

Callers 4

TestOperationPackFilesFunction · 0.85
TestWriteReadFunction · 0.85

Calls 2

NewMockRepoFunction · 0.92
makeTestContextInternalFunction · 0.85

Tested by

no test coverage detected