MCPcopy Create free account
hub / github.com/go-git/go-git / TestSubmoduleParseScp

Method TestSubmoduleParseScp

submodule_test.go:265–286  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

263}
264
265func (s *SubmoduleSuite) TestSubmoduleParseScp(c *C) {
266 repo := &Repository{
267 Storer: memory.NewStorage(),
268 wt: memfs.New(),
269 }
270 worktree := &Worktree{
271 Filesystem: memfs.New(),
272 r: repo,
273 }
274 submodule := &Submodule{
275 initialized: true,
276 c: nil,
277 w: worktree,
278 }
279
280 submodule.c = &config.Submodule{
281 URL: "git@github.com:username/submodule_repo",
282 }
283
284 _, err := submodule.Repository()
285 c.Assert(err, IsNil)
286}

Callers

nothing calls this directly

Calls 2

RepositoryMethod · 0.95
NewStorageFunction · 0.92

Tested by

no test coverage detected