MCPcopy Index your code
hub / github.com/plexdrive/plexdrive / Push

Method Push

chunk/stack.go:55–59  ·  view source on GitHub ↗

Push adds a new item to the last position of the stack

(id int)

Source from the content-addressed store, hash-verified

53
54// Push adds a new item to the last position of the stack
55func (s *Stack) Push(id int) *list.Element {
56 s.lock.Lock()
57 defer s.lock.Unlock()
58 return s.items.PushBack(id)
59}
60
61// Prepend adds a list to the front of the stack
62func (s *Stack) Prepend(items *list.List) {

Callers 4

TestOOBFunction · 0.95
TestAddToStackFunction · 0.95
TestLenFunction · 0.95
StoreMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestOOBFunction · 0.76
TestAddToStackFunction · 0.76
TestLenFunction · 0.76