(c *C)
| 339 | } |
| 340 | |
| 341 | func (s *SuiteDotGit) TestRefsFromHEADFile(c *C) { |
| 342 | fs := fixtures.Basic().ByTag(".git").One().DotGit() |
| 343 | dir := New(fs) |
| 344 | |
| 345 | refs, err := dir.Refs() |
| 346 | c.Assert(err, IsNil) |
| 347 | |
| 348 | ref := findReference(refs, "HEAD") |
| 349 | c.Assert(ref, NotNil) |
| 350 | c.Assert(ref.Type(), Equals, plumbing.SymbolicReference) |
| 351 | c.Assert(string(ref.Target()), Equals, "refs/heads/master") |
| 352 | } |
| 353 | |
| 354 | func (s *SuiteDotGit) TestConfig(c *C) { |
| 355 | fs := fixtures.Basic().ByTag(".git").One().DotGit() |
nothing calls this directly
no test coverage detected