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

Method TestCreateRemoteInvalid

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

Source from the content-addressed store, hash-verified

345}
346
347func (s *RepositorySuite) TestCreateRemoteInvalid(c *C) {
348 r, _ := Init(memory.NewStorage(), nil)
349 remote, err := r.CreateRemote(&config.RemoteConfig{})
350
351 c.Assert(err, Equals, config.ErrRemoteConfigEmptyName)
352 c.Assert(remote, IsNil)
353}
354
355func (s *RepositorySuite) TestCreateRemoteAnonymous(c *C) {
356 r, _ := Init(memory.NewStorage(), nil)

Callers

nothing calls this directly

Calls 3

NewStorageFunction · 0.92
InitFunction · 0.85
CreateRemoteMethod · 0.80

Tested by

no test coverage detected