MCPcopy
hub / github.com/caprover/caprover / push

Method push

src/utils/CircularQueue.ts:13–16  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

11 }
12
13 push(value: T) {
14 this.values[this.currSize % this.maxSize] = value
15 this.currSize++
16 }
17
18 peek(): T | undefined {
19 const nextPositionToBeOverwritten = this.currSize % this.maxSize

Callers 15

createTestFunction · 0.95
getTagsForImageFunction · 0.80
constructorMethod · 0.80
filterInPlaceMethod · 0.80
installFunction · 0.80
addCustomDomainForAppMethod · 0.80
createNewVersionMethod · 0.80

Calls

no outgoing calls

Tested by 2

createTestFunction · 0.76
createTestArrayFunction · 0.64