(c *C)
| 3099 | } |
| 3100 | |
| 3101 | func (s *RepositorySuite) TestObjectNotFound(c *C) { |
| 3102 | r, _ := Init(memory.NewStorage(), nil) |
| 3103 | err := r.clone(context.Background(), &CloneOptions{URL: s.GetBasicLocalRepositoryURL()}) |
| 3104 | c.Assert(err, IsNil) |
| 3105 | |
| 3106 | hash := plumbing.NewHash("0a3fb06ff80156fb153bcdcc58b5e16c2d27625c") |
| 3107 | tag, err := r.Object(plumbing.TagObject, hash) |
| 3108 | c.Assert(err, DeepEquals, plumbing.ErrObjectNotFound) |
| 3109 | c.Assert(tag, IsNil) |
| 3110 | } |
| 3111 | |
| 3112 | func (s *RepositorySuite) TestWorktree(c *C) { |
| 3113 | def := memfs.New() |
nothing calls this directly
no test coverage detected