(c *C)
| 25 | } |
| 26 | |
| 27 | func (b *BranchSuite) TestValidateMerge(c *C) { |
| 28 | goodBranch := Branch{ |
| 29 | Name: "master", |
| 30 | Remote: "some_remote", |
| 31 | Merge: "refs/heads/master", |
| 32 | } |
| 33 | badBranch := Branch{ |
| 34 | Name: "master", |
| 35 | Remote: "some_remote", |
| 36 | Merge: "blah", |
| 37 | } |
| 38 | c.Assert(goodBranch.Validate(), IsNil) |
| 39 | c.Assert(badBranch.Validate(), NotNil) |
| 40 | } |
| 41 | |
| 42 | func (b *BranchSuite) TestMarshal(c *C) { |
| 43 | expected := []byte(`[core] |