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

Method TestPushNonExistentEndpoint

remote_test.go:1168–1172  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

1166}
1167
1168func (s *RemoteSuite) TestPushNonExistentEndpoint(c *C) {
1169 r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"ssh://non-existent/foo.git"}})
1170 err := r.Push(&PushOptions{})
1171 c.Assert(err, NotNil)
1172}
1173
1174func (s *RemoteSuite) TestPushOverriddenEndpoint(c *C) {
1175 r := NewRemote(nil, &config.RemoteConfig{Name: "origin", URLs: []string{"http://perfectly-valid-url.example.com"}})

Callers

nothing calls this directly

Calls 2

PushMethod · 0.95
NewRemoteFunction · 0.85

Tested by

no test coverage detected