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

Method TestFetchOverriddenEndpoint

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

Source from the content-addressed store, hash-verified

57}
58
59func (s *RemoteSuite) TestFetchOverriddenEndpoint(c *C) {
60 r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"http://perfectly-valid-url.example.com"}})
61 err := r.Fetch(&FetchOptions{RemoteURL: "http://\\"})
62 c.Assert(err, ErrorMatches, ".*invalid character.*")
63}
64
65func (s *RemoteSuite) TestFetchInvalidFetchOptions(c *C) {
66 r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"qux://foo"}})

Callers

nothing calls this directly

Calls 2

FetchMethod · 0.95
NewRemoteFunction · 0.85

Tested by

no test coverage detected