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

Method TestCloneWithProgress

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

Source from the content-addressed store, hash-verified

1274}
1275
1276func (s *RepositorySuite) TestCloneWithProgress(c *C) {
1277 fs := memfs.New()
1278
1279 buf := bytes.NewBuffer(nil)
1280 _, err := Clone(memory.NewStorage(), fs, &CloneOptions{
1281 URL: s.GetBasicLocalRepositoryURL(),
1282 Progress: buf,
1283 })
1284
1285 c.Assert(err, IsNil)
1286 c.Assert(buf.Len(), Not(Equals), 0)
1287}
1288
1289func (s *RepositorySuite) TestCloneDeep(c *C) {
1290 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