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

Method TestClone

repository_test.go:225–235  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

223}
224
225func (s *RepositorySuite) TestClone(c *C) {
226 r, err := Clone(memory.NewStorage(), nil, &CloneOptions{
227 URL: s.GetBasicLocalRepositoryURL(),
228 })
229
230 c.Assert(err, IsNil)
231
232 remotes, err := r.Remotes()
233 c.Assert(err, IsNil)
234 c.Assert(remotes, HasLen, 1)
235}
236
237func (s *RepositorySuite) TestCloneContext(c *C) {
238 ctx, cancel := context.WithCancel(context.Background())

Callers

nothing calls this directly

Calls 4

NewStorageFunction · 0.92
CloneFunction · 0.85
RemotesMethod · 0.80

Tested by

no test coverage detected