MCPcopy Index your code
hub / github.com/go-git/go-git / TestPushNonExistentEndpoint

Method TestPushNonExistentEndpoint

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

Source from the content-addressed store, hash-verified

1184}
1185
1186func (s *RemoteSuite) TestPushNonExistentEndpoint(c *C) {
1187 r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"ssh://non-existent/foo.git"}})
1188 err := r.Push(&PushOptions{})
1189 c.Assert(err, NotNil)
1190}
1191
1192func (s *RemoteSuite) TestPushOverriddenEndpoint(c *C) {
1193 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