MCPcopy Create free account
hub / github.com/go-git/go-git / TestPushNonExistentRemote

Method TestPushNonExistentRemote

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

Source from the content-addressed store, hash-verified

1782}
1783
1784func (s *RepositorySuite) TestPushNonExistentRemote(c *C) {
1785 srcFs := fixtures.Basic().One().DotGit()
1786 sto := filesystem.NewStorage(srcFs, cache.NewObjectLRUDefault())
1787
1788 r, err := Open(sto, srcFs)
1789 c.Assert(err, IsNil)
1790
1791 err = r.Push(&PushOptions{RemoteName: "myremote"})
1792 c.Assert(err, ErrorMatches, ".*remote not found.*")
1793}
1794
1795func (s *RepositorySuite) TestLog(c *C) {
1796 r, _ := Init(memory.NewStorage(), nil)

Callers

nothing calls this directly

Calls 4

NewStorageFunction · 0.92
NewObjectLRUDefaultFunction · 0.92
OpenFunction · 0.85
PushMethod · 0.65

Tested by

no test coverage detected