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

Method TestConfig

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

Source from the content-addressed store, hash-verified

352}
353
354func (s *SuiteDotGit) TestConfig(c *C) {
355 fs := fixtures.Basic().ByTag(".git").One().DotGit()
356 dir := New(fs)
357
358 file, err := dir.Config()
359 c.Assert(err, IsNil)
360 c.Assert(filepath.Base(file.Name()), Equals, "config")
361}
362
363func (s *SuiteDotGit) TestConfigWriteAndConfig(c *C) {
364 fs, clean := s.TemporalFilesystem()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
ConfigMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected