MCPcopy Index your code
hub / github.com/go-git/go-git / TestRepositoryRelativeURLHTTPSParent

Method TestRepositoryRelativeURLHTTPSParent

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

Source from the content-addressed store, hash-verified

327}
328
329func (s *SubmoduleSuite) TestRepositoryRelativeURLHTTPSParent(c *C) {
330 sm := newSubmoduleForRelativeURL(c,
331 "https://example.invalid/group/proj.git", "basic", "../X.git")
332
333 r, err := sm.Repository()
334 c.Assert(err, IsNil)
335
336 remotes, err := r.Remotes()
337 c.Assert(err, IsNil)
338 c.Assert(remotes, HasLen, 1)
339 c.Assert(remotes[0].Config().URLs[0], Equals,
340 "https://example.invalid/group/X.git")
341}
342
343func (s *SubmoduleSuite) TestRepositoryRelativeURLSSHParent(c *C) {
344 sm := newSubmoduleForRelativeURL(c,

Callers

nothing calls this directly

Calls 4

RepositoryMethod · 0.80
RemotesMethod · 0.80
ConfigMethod · 0.65

Tested by

no test coverage detected