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

Method TestFetchNonExistentEndpoint

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

Source from the content-addressed store, hash-verified

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