MCPcopy
hub / github.com/go-git/go-git / TestPushInvalidSchemaEndpoint

Method TestPushInvalidSchemaEndpoint

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

Source from the content-addressed store, hash-verified

1196}
1197
1198func (s *RemoteSuite) TestPushInvalidSchemaEndpoint(c *C) {
1199 r := NewRemote(nil, &config.RemoteConfig{Name: "origin", URLs: []string{"qux://foo"}})
1200 err := r.Push(&PushOptions{})
1201 c.Assert(err, ErrorMatches, ".*unsupported scheme.*")
1202}
1203
1204func (s *RemoteSuite) TestPushInvalidFetchOptions(c *C) {
1205 r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"qux://foo"}})

Callers

nothing calls this directly

Calls 2

PushMethod · 0.95
NewRemoteFunction · 0.85

Tested by

no test coverage detected