(c *C)
| 383 | } |
| 384 | |
| 385 | func (s *RepositorySuite) TestDeleteRemote(c *C) { |
| 386 | r, _ := Init(memory.NewStorage(), nil) |
| 387 | _, err := r.CreateRemote(&config.RemoteConfig{ |
| 388 | Name: "foo", |
| 389 | URLs: []string{"http://foo/foo.git"}, |
| 390 | }) |
| 391 | |
| 392 | c.Assert(err, IsNil) |
| 393 | |
| 394 | err = r.DeleteRemote("foo") |
| 395 | c.Assert(err, IsNil) |
| 396 | |
| 397 | alt, err := r.Remote("foo") |
| 398 | c.Assert(err, Equals, ErrRemoteNotFound) |
| 399 | c.Assert(alt, IsNil) |
| 400 | } |
| 401 | |
| 402 | func (s *RepositorySuite) TestEmptyCreateBranch(c *C) { |
| 403 | r, _ := Init(memory.NewStorage(), nil) |
nothing calls this directly
no test coverage detected