(c *C)
| 364 | } |
| 365 | |
| 366 | func (s *RepositorySuite) TestCreateRemoteAnonymousInvalidName(c *C) { |
| 367 | r, _ := Init(memory.NewStorage(), nil) |
| 368 | remote, err := r.CreateRemoteAnonymous(&config.RemoteConfig{ |
| 369 | Name: "not_anonymous", |
| 370 | URLs: []string{"http://foo/foo.git"}, |
| 371 | }) |
| 372 | |
| 373 | c.Assert(err, Equals, ErrAnonymousRemoteName) |
| 374 | c.Assert(remote, IsNil) |
| 375 | } |
| 376 | |
| 377 | func (s *RepositorySuite) TestCreateRemoteAnonymousInvalid(c *C) { |
| 378 | r, _ := Init(memory.NewStorage(), nil) |
nothing calls this directly
no test coverage detected