(c *C)
| 353 | } |
| 354 | |
| 355 | func (s *RepositorySuite) TestCreateRemoteAnonymous(c *C) { |
| 356 | r, _ := Init(memory.NewStorage(), nil) |
| 357 | remote, err := r.CreateRemoteAnonymous(&config.RemoteConfig{ |
| 358 | Name: "anonymous", |
| 359 | URLs: []string{"http://foo/foo.git"}, |
| 360 | }) |
| 361 | |
| 362 | c.Assert(err, IsNil) |
| 363 | c.Assert(remote.Config().Name, Equals, "anonymous") |
| 364 | } |
| 365 | |
| 366 | func (s *RepositorySuite) TestCreateRemoteAnonymousInvalidName(c *C) { |
| 367 | r, _ := Init(memory.NewStorage(), nil) |
nothing calls this directly
no test coverage detected