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

Method TestFetchInvalidFetchOptions

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

Source from the content-addressed store, hash-verified

63}
64
65func (s *RemoteSuite) TestFetchInvalidFetchOptions(c *C) {
66 r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"qux://foo"}})
67 invalid := config.RefSpec("^*$ñ")
68 err := r.Fetch(&FetchOptions{RefSpecs: []config.RefSpec{invalid}})
69 c.Assert(err, Equals, config.ErrRefSpecMalformedSeparator)
70}
71
72func (s *RemoteSuite) TestFetchWildcard(c *C) {
73 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