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

Method TestSubmodules

storage/filesystem/dotgit/dotgit_test.go:762–769  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

760}
761
762func (s *SuiteDotGit) TestSubmodules(c *C) {
763 fs := fixtures.ByTag("submodule").One().DotGit()
764 dir := New(fs)
765
766 m, err := dir.Module("basic")
767 c.Assert(err, IsNil)
768 c.Assert(strings.HasSuffix(m.Root(), m.Join(".git", "modules", "basic")), Equals, true)
769}
770
771func (s *SuiteDotGit) TestPackRefs(c *C) {
772 fs := s.TemporalFilesystem(c)

Callers

nothing calls this directly

Calls 4

RootMethod · 0.80
JoinMethod · 0.80
NewFunction · 0.70
ModuleMethod · 0.65

Tested by

no test coverage detected