(c *C)
| 2372 | } |
| 2373 | |
| 2374 | func (s *RepositorySuite) TestConfigScoped(c *C) { |
| 2375 | r, _ := Init(memory.NewStorage(), nil) |
| 2376 | err := r.clone(context.Background(), &CloneOptions{ |
| 2377 | URL: s.GetBasicLocalRepositoryURL(), |
| 2378 | }) |
| 2379 | c.Assert(err, IsNil) |
| 2380 | |
| 2381 | cfg, err := r.ConfigScoped(config.LocalScope) |
| 2382 | c.Assert(err, IsNil) |
| 2383 | c.Assert(cfg.User.Email, Equals, "") |
| 2384 | |
| 2385 | cfg, err = r.ConfigScoped(config.SystemScope) |
| 2386 | c.Assert(err, IsNil) |
| 2387 | c.Assert(cfg.User.Email, Not(Equals), "") |
| 2388 | } |
| 2389 | |
| 2390 | func (s *RepositorySuite) TestCommit(c *C) { |
| 2391 | r, _ := Init(memory.NewStorage(), nil) |
nothing calls this directly
no test coverage detected