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

Method TestFetchNonExistentEndpoint

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

Source from the content-addressed store, hash-verified

45}
46
47func (s *RemoteSuite) TestFetchNonExistentEndpoint(c *C) {
48 r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"ssh://non-existent/foo.git"}})
49 err := r.Fetch(&FetchOptions{})
50 c.Assert(err, NotNil)
51}
52
53func (s *RemoteSuite) TestFetchInvalidSchemaEndpoint(c *C) {
54 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