MCPcopy
hub / github.com/caprover/caprover / createTest

Function createTest

tests/CircularQueue.test.ts:3–10  ·  view source on GitHub ↗
(size: number, initWith: number)

Source from the content-addressed store, hash-verified

1import CircularQueue from '../src/utils/CircularQueue'
2
3function createTest(size: number, initWith: number) {
4 const testQueue = new CircularQueue<string>(size)
5 for (let index = 0; index < initWith; index++) {
6 testQueue.push('val:' + (index + 1))
7 }
8
9 return testQueue
10}
11
12test('Large Circular Queue', () => {
13 for (let index = 5; index < 20; index++) {

Callers 1

Calls 1

pushMethod · 0.95

Tested by

no test coverage detected