MCPcopy Create free account
hub / github.com/go-git/go-git / TestValidateMerge

Method TestValidateMerge

config/branch_test.go:27–40  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

25}
26
27func (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
42func (b *BranchSuite) TestMarshal(c *C) {
43 expected := []byte(`[core]

Callers

nothing calls this directly

Calls 1

ValidateMethod · 0.95

Tested by

no test coverage detected