MCPcopy Index your code
hub / github.com/buildbot/buildbot / createCollection

Function createCollection

www/data-module/src/data/DataCollection.test.ts:42–47  ·  view source on GitHub ↗
(restPath: string, query: Query)

Source from the content-addressed store, hash-verified

40
41describe('DataCollection', () => {
42 function createCollection(restPath: string, query: Query) {
43 const c = new DataCollection<TestDataClass>();
44 c.open(restPath, query, new EmptyDataAccessor(), new TestDescriptor(),
45 new WebSocketClient('url', (_) => new MockWebSocket()));
46 return c;
47 }
48
49 const expectArrayContents = (c: DataCollection<TestDataClass>, expected: [number, number][]) => {
50 expect(c.array.map(x => [x.testid, x.testdata])).toEqual(expected);

Callers 1

Calls 1

openMethod · 0.95

Tested by

no test coverage detected