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

Method TestPushInvalidEndpoint

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

Source from the content-addressed store, hash-verified

1178}
1179
1180func (s *RemoteSuite) TestPushInvalidEndpoint(c *C) {
1181 r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"http://\\"}})
1182 err := r.Push(&PushOptions{RemoteName: "foo"})
1183 c.Assert(err, ErrorMatches, ".*invalid character.*")
1184}
1185
1186func (s *RemoteSuite) TestPushNonExistentEndpoint(c *C) {
1187 r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"ssh://non-existent/foo.git"}})

Callers

nothing calls this directly

Calls 2

PushMethod · 0.95
NewRemoteFunction · 0.85

Tested by

no test coverage detected