MCPcopy Create free account
hub / github.com/firebase/firebase-tools / buildData

Function buildData

src/database/remove.spec.ts:43–52  ·  view source on GitHub ↗
(branchFactor: number, depth: number)

Source from the content-addressed store, hash-verified

41 });
42
43 function buildData(branchFactor: number, depth: number): any {
44 if (depth === 0) {
45 return 1;
46 }
47 const d: any = {};
48 for (let i = 0; i < branchFactor; i++) {
49 d[`${i}`] = buildData(branchFactor, depth - 1);
50 }
51 return d;
52 }
53
54 function databaseRemoveTestSuit(threshold: number): void {
55 describe(`DatabaseRemove when largeThreshold=${threshold}`, () => {

Callers 1

databaseRemoveTestSuitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…