(c *C)
| 46 | var _ = Suite(&RepositorySuite{}) |
| 47 | |
| 48 | func (s *RepositorySuite) TestInit(c *C) { |
| 49 | r, err := Init(memory.NewStorage(), memfs.New()) |
| 50 | c.Assert(err, IsNil) |
| 51 | c.Assert(r, NotNil) |
| 52 | |
| 53 | cfg, err := r.Config() |
| 54 | c.Assert(err, IsNil) |
| 55 | c.Assert(cfg.Core.IsBare, Equals, false) |
| 56 | |
| 57 | // check the HEAD to see what the default branch is |
| 58 | createCommit(c, r) |
| 59 | ref, err := r.Head() |
| 60 | c.Assert(err, IsNil) |
| 61 | c.Assert(ref.Name().String(), Equals, plumbing.Master.String()) |
| 62 | } |
| 63 | |
| 64 | func (s *RepositorySuite) TestInitWithOptions(c *C) { |
| 65 | r, err := InitWithOptions(memory.NewStorage(), memfs.New(), InitOptions{ |
nothing calls this directly
no test coverage detected