(c *C)
| 62 | } |
| 63 | |
| 64 | func (s *RepositorySuite) TestInitWithOptions(c *C) { |
| 65 | r, err := InitWithOptions(memory.NewStorage(), memfs.New(), InitOptions{ |
| 66 | DefaultBranch: "refs/heads/foo", |
| 67 | }) |
| 68 | c.Assert(err, IsNil) |
| 69 | c.Assert(r, NotNil) |
| 70 | createCommit(c, r) |
| 71 | |
| 72 | ref, err := r.Head() |
| 73 | c.Assert(err, IsNil) |
| 74 | c.Assert(ref.Name().String(), Equals, "refs/heads/foo") |
| 75 | |
| 76 | } |
| 77 | |
| 78 | func (s *RepositorySuite) TestInitWithInvalidDefaultBranch(c *C) { |
| 79 | _, err := InitWithOptions(memory.NewStorage(), memfs.New(), InitOptions{ |
nothing calls this directly
no test coverage detected