(c *C)
| 1288 | } |
| 1289 | |
| 1290 | func (s *RepositorySuite) TestFetchContext(c *C) { |
| 1291 | r, _ := Init(memory.NewStorage(), nil) |
| 1292 | _, err := r.CreateRemote(&config.RemoteConfig{ |
| 1293 | Name: DefaultRemoteName, |
| 1294 | URLs: []string{s.GetBasicLocalRepositoryURL()}, |
| 1295 | }) |
| 1296 | c.Assert(err, IsNil) |
| 1297 | |
| 1298 | ctx, cancel := context.WithCancel(context.Background()) |
| 1299 | cancel() |
| 1300 | |
| 1301 | c.Assert(r.FetchContext(ctx, &FetchOptions{}), NotNil) |
| 1302 | } |
| 1303 | |
| 1304 | func (s *RepositorySuite) TestCloneWithProgress(c *C) { |
| 1305 | fs := memfs.New() |
nothing calls this directly
no test coverage detected