Peek returns the most recently added CommitNode from the stack without removing it
()
| 38 | |
| 39 | // Peek returns the most recently added CommitNode from the stack without removing it |
| 40 | func (l *commitNodeLifo) Peek() (CommitNode, bool) { |
| 41 | if len(l.l) == 0 { |
| 42 | return nil, false |
| 43 | } |
| 44 | return l.l[len(l.l)-1], true |
| 45 | } |
| 46 | |
| 47 | // Size returns the number of CommitNodes in the stack |
| 48 | func (l *commitNodeLifo) Size() int { |
nothing calls this directly
no outgoing calls
no test coverage detected