(c *C)
| 58 | } |
| 59 | |
| 60 | func (s *OptionsSuite) TestCommitOptionsLoadGlobalCommitter(c *C) { |
| 61 | cfg := config.NewConfig() |
| 62 | cfg.User.Name = "foo" |
| 63 | cfg.User.Email = "foo@foo.com" |
| 64 | cfg.Committer.Name = "bar" |
| 65 | cfg.Committer.Email = "bar@bar.com" |
| 66 | |
| 67 | clean := s.writeGlobalConfig(c, cfg) |
| 68 | defer clean() |
| 69 | |
| 70 | o := CommitOptions{} |
| 71 | err := o.Validate(s.Repository) |
| 72 | c.Assert(err, IsNil) |
| 73 | |
| 74 | c.Assert(o.Author.Name, Equals, "foo") |
| 75 | c.Assert(o.Author.Email, Equals, "foo@foo.com") |
| 76 | c.Assert(o.Committer.Name, Equals, "bar") |
| 77 | c.Assert(o.Committer.Email, Equals, "bar@bar.com") |
| 78 | } |
| 79 | |
| 80 | func (s *OptionsSuite) TestCreateTagOptionsLoadGlobal(c *C) { |
| 81 | cfg := config.NewConfig() |
nothing calls this directly
no test coverage detected