Hashes returns all the hashes that are available in the index
()
| 60 | |
| 61 | // Hashes returns all the hashes that are available in the index |
| 62 | func (mi *MemoryIndex) Hashes() []plumbing.Hash { |
| 63 | hashes := make([]plumbing.Hash, 0, len(mi.indexMap)) |
| 64 | for k := range mi.indexMap { |
| 65 | hashes = append(hashes, k) |
| 66 | } |
| 67 | return hashes |
| 68 | } |
| 69 | |
| 70 | // Add adds new node to the memory index |
| 71 | func (mi *MemoryIndex) Add(hash plumbing.Hash, commitData *CommitData) { |
nothing calls this directly
no outgoing calls
no test coverage detected