MCPcopy
hub / github.com/go-git/go-git / TestCreateRemoteAnonymousInvalid

Method TestCreateRemoteAnonymousInvalid

repository_test.go:377–383  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

375}
376
377func (s *RepositorySuite) TestCreateRemoteAnonymousInvalid(c *C) {
378 r, _ := Init(memory.NewStorage(), nil)
379 remote, err := r.CreateRemoteAnonymous(&config.RemoteConfig{})
380
381 c.Assert(err, Equals, config.ErrRemoteConfigEmptyName)
382 c.Assert(remote, IsNil)
383}
384
385func (s *RepositorySuite) TestDeleteRemote(c *C) {
386 r, _ := Init(memory.NewStorage(), nil)

Callers

nothing calls this directly

Calls 3

NewStorageFunction · 0.92
InitFunction · 0.85
CreateRemoteAnonymousMethod · 0.80

Tested by

no test coverage detected