(c *C)
| 3110 | } |
| 3111 | |
| 3112 | func (s *RepositorySuite) TestWorktree(c *C) { |
| 3113 | def := memfs.New() |
| 3114 | r, _ := Init(memory.NewStorage(), def) |
| 3115 | w, err := r.Worktree() |
| 3116 | c.Assert(err, IsNil) |
| 3117 | // w.Filesystem is the worktreeFilesystem wrapper around def. |
| 3118 | wfs, ok := w.Filesystem.(*worktreeFilesystem) |
| 3119 | c.Assert(ok, Equals, true) |
| 3120 | c.Assert(wfs.Filesystem, Equals, def) |
| 3121 | } |
| 3122 | |
| 3123 | func (s *RepositorySuite) TestWorktreeBare(c *C) { |
| 3124 | r, _ := Init(memory.NewStorage(), nil) |
nothing calls this directly
no test coverage detected