(c *C)
| 598 | } |
| 599 | |
| 600 | func (s *RepositorySuite) TestCreateBranchInvalid(c *C) { |
| 601 | r, _ := Init(memory.NewStorage(), nil) |
| 602 | err := r.CreateBranch(&config.Branch{}) |
| 603 | |
| 604 | c.Assert(err, NotNil) |
| 605 | |
| 606 | testBranch := &config.Branch{ |
| 607 | Name: "foo", |
| 608 | Remote: "origin", |
| 609 | Merge: "refs/heads/foo", |
| 610 | } |
| 611 | err = r.CreateBranch(testBranch) |
| 612 | c.Assert(err, IsNil) |
| 613 | err = r.CreateBranch(testBranch) |
| 614 | c.Assert(err, NotNil) |
| 615 | } |
| 616 | |
| 617 | func (s *RepositorySuite) TestDeleteBranch(c *C) { |
| 618 | r, _ := Init(memory.NewStorage(), nil) |
nothing calls this directly
no test coverage detected