(c *C)
| 74 | } |
| 75 | |
| 76 | func (s *SuiteDotGit) TestInitialize(c *C) { |
| 77 | fs := s.TemporalFilesystem(c) |
| 78 | |
| 79 | dir := New(fs) |
| 80 | |
| 81 | err := dir.Initialize() |
| 82 | c.Assert(err, IsNil) |
| 83 | |
| 84 | _, err = fs.Stat(fs.Join("objects", "info")) |
| 85 | c.Assert(err, IsNil) |
| 86 | |
| 87 | _, err = fs.Stat(fs.Join("objects", "pack")) |
| 88 | c.Assert(err, IsNil) |
| 89 | |
| 90 | _, err = fs.Stat(fs.Join("refs", "heads")) |
| 91 | c.Assert(err, IsNil) |
| 92 | |
| 93 | _, err = fs.Stat(fs.Join("refs", "tags")) |
| 94 | c.Assert(err, IsNil) |
| 95 | } |
| 96 | |
| 97 | func (s *SuiteDotGit) TestSetRefs(c *C) { |
| 98 | fs := s.TemporalFilesystem(c) |
nothing calls this directly
no test coverage detected