(c *C)
| 329 | } |
| 330 | |
| 331 | func (s *RepositorySuite) TestCreateRemoteAndRemote(c *C) { |
| 332 | r, _ := Init(memory.NewStorage(), nil) |
| 333 | remote, err := r.CreateRemote(&config.RemoteConfig{ |
| 334 | Name: "foo", |
| 335 | URLs: []string{"http://foo/foo.git"}, |
| 336 | }) |
| 337 | |
| 338 | c.Assert(err, IsNil) |
| 339 | c.Assert(remote.Config().Name, Equals, "foo") |
| 340 | |
| 341 | alt, err := r.Remote("foo") |
| 342 | c.Assert(err, IsNil) |
| 343 | c.Assert(alt, Not(Equals), remote) |
| 344 | c.Assert(alt.Config().Name, Equals, "foo") |
| 345 | } |
| 346 | |
| 347 | func (s *RepositorySuite) TestCreateRemoteInvalid(c *C) { |
| 348 | r, _ := Init(memory.NewStorage(), nil) |
nothing calls this directly
no test coverage detected