(c *C)
| 2962 | } |
| 2963 | |
| 2964 | func (s *RepositorySuite) TestNotes(c *C) { |
| 2965 | // TODO add fixture with Notes |
| 2966 | url := s.GetLocalRepositoryURL( |
| 2967 | fixtures.ByURL("https://github.com/git-fixtures/tags.git").One(), |
| 2968 | ) |
| 2969 | |
| 2970 | r, _ := Init(memory.NewStorage(), nil) |
| 2971 | err := r.clone(context.Background(), &CloneOptions{URL: url}) |
| 2972 | c.Assert(err, IsNil) |
| 2973 | |
| 2974 | count := 0 |
| 2975 | notes, err := r.Notes() |
| 2976 | c.Assert(err, IsNil) |
| 2977 | |
| 2978 | notes.ForEach(func(note *plumbing.Reference) error { |
| 2979 | count++ |
| 2980 | c.Assert(note.Hash().IsZero(), Equals, false) |
| 2981 | c.Assert(note.Name().IsNote(), Equals, true) |
| 2982 | return nil |
| 2983 | }) |
| 2984 | |
| 2985 | c.Assert(count, Equals, 0) |
| 2986 | } |
| 2987 | |
| 2988 | func (s *RepositorySuite) TestTree(c *C) { |
| 2989 | r, _ := Init(memory.NewStorage(), nil) |
nothing calls this directly
no test coverage detected