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

Method TestPushInvalidFetchOptions

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

Source from the content-addressed store, hash-verified

1184}
1185
1186func (s *RemoteSuite) TestPushInvalidFetchOptions(c *C) {
1187 r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"qux://foo"}})
1188 invalid := config.RefSpec("^*$ñ")
1189 err := r.Push(&PushOptions{RefSpecs: []config.RefSpec{invalid}})
1190 c.Assert(err, Equals, config.ErrRefSpecMalformedSeparator)
1191}
1192
1193func (s *RemoteSuite) TestPushInvalidRefSpec(c *C) {
1194 r := NewRemote(nil, &config.RemoteConfig{

Callers

nothing calls this directly

Calls 3

PushMethod · 0.95
RefSpecTypeAlias · 0.92
NewRemoteFunction · 0.85

Tested by

no test coverage detected