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

Method TestFetchInvalidFetchOptions

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

Source from the content-addressed store, hash-verified

60}
61
62func (s *RemoteSuite) TestFetchInvalidFetchOptions(c *C) {
63 r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"qux://foo"}})
64 invalid := config.RefSpec("^*$ñ")
65 err := r.Fetch(&FetchOptions{RefSpecs: []config.RefSpec{invalid}})
66 c.Assert(err, Equals, config.ErrRefSpecMalformedSeparator)
67}
68
69func (s *RemoteSuite) TestFetchWildcard(c *C) {
70 r := NewRemote(memory.NewStorage(), &config.RemoteConfig{

Callers

nothing calls this directly

Calls 3

FetchMethod · 0.95
RefSpecTypeAlias · 0.92
NewRemoteFunction · 0.85

Tested by

no test coverage detected