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

Method TestCloneWithProgress

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

Source from the content-addressed store, hash-verified

1302}
1303
1304func (s *RepositorySuite) TestCloneWithProgress(c *C) {
1305 fs := memfs.New()
1306
1307 buf := bytes.NewBuffer(nil)
1308 _, err := Clone(memory.NewStorage(), fs, &CloneOptions{
1309 URL: s.GetBasicLocalRepositoryURL(),
1310 Progress: buf,
1311 })
1312
1313 c.Assert(err, IsNil)
1314 c.Assert(buf.Len(), Not(Equals), 0)
1315}
1316
1317func (s *RepositorySuite) TestCloneDeep(c *C) {
1318 fs := memfs.New()

Callers

nothing calls this directly

Calls 4

NewStorageFunction · 0.92
CloneFunction · 0.85
LenMethod · 0.45

Tested by

no test coverage detected