(c *C)
| 422 | } |
| 423 | |
| 424 | func (s *SuiteDotGit) TestIndexWriteAndIndex(c *C) { |
| 425 | fs := s.TemporalFilesystem(c) |
| 426 | |
| 427 | dir := New(fs) |
| 428 | |
| 429 | f, err := dir.IndexWriter() |
| 430 | c.Assert(err, IsNil) |
| 431 | |
| 432 | _, err = f.Write([]byte("foo")) |
| 433 | c.Assert(err, IsNil) |
| 434 | |
| 435 | f, err = dir.Index() |
| 436 | c.Assert(err, IsNil) |
| 437 | |
| 438 | cnt, err := io.ReadAll(f) |
| 439 | c.Assert(err, IsNil) |
| 440 | |
| 441 | c.Assert(string(cnt), Equals, "foo") |
| 442 | } |
| 443 | |
| 444 | func (s *SuiteDotGit) TestShallow(c *C) { |
| 445 | fs := fixtures.Basic().ByTag(".git").One().DotGit() |
nothing calls this directly
no test coverage detected