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

Method TestSubmodules

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

Source from the content-addressed store, hash-verified

734}
735
736func (s *SuiteDotGit) TestSubmodules(c *C) {
737 fs := fixtures.ByTag("submodule").One().DotGit()
738 dir := New(fs)
739
740 m, err := dir.Module("basic")
741 c.Assert(err, IsNil)
742 c.Assert(strings.HasSuffix(m.Root(), m.Join(".git", "modules", "basic")), Equals, true)
743}
744
745func (s *SuiteDotGit) TestPackRefs(c *C) {
746 fs, clean := s.TemporalFilesystem()

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