(c *C)
| 23 | var _ = Suite(&SubmoduleSuite{}) |
| 24 | |
| 25 | func (s *SubmoduleSuite) SetUpTest(c *C) { |
| 26 | path := fixtures.ByTag("submodule").One().Worktree().Root() |
| 27 | |
| 28 | var dir string |
| 29 | dir, s.clean = s.TemporalDir() |
| 30 | |
| 31 | r, err := PlainClone(filepath.Join(dir, "worktree"), false, &CloneOptions{ |
| 32 | URL: path, |
| 33 | }) |
| 34 | |
| 35 | c.Assert(err, IsNil) |
| 36 | |
| 37 | s.Repository = r |
| 38 | s.Worktree, err = r.Worktree() |
| 39 | c.Assert(err, IsNil) |
| 40 | } |
| 41 | |
| 42 | func (s *SubmoduleSuite) TearDownTest(_ *C) { |
| 43 | s.clean() |
nothing calls this directly
no test coverage detected