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

Method TestRepositoryRelativeURLNoParentRemote

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

Source from the content-addressed store, hash-verified

390}
391
392func (s *SubmoduleSuite) TestRepositoryRelativeURLNoParentRemote(c *C) {
393 sm := newSubmoduleForRelativeURL(c, "", "basic", "../X.git")
394
395 _, err := sm.Repository()
396 c.Assert(err, NotNil)
397 c.Assert(err, ErrorMatches, `resolving relative submodule URL: remote "origin" not found`)
398}
399
400func (s *SubmoduleSuite) TestDefaultRemote(c *C) {
401 type testCase struct {

Callers

nothing calls this directly

Calls 2

RepositoryMethod · 0.80

Tested by

no test coverage detected