MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / createMockClassDiff

Function createMockClassDiff

tests/mocks.ts:1227–1240  ·  view source on GitHub ↗
(
  options: Partial<HeapSnapshotClassDiff> = {},
)

Source from the content-addressed store, hash-verified

1225}
1226
1227export function createMockClassDiff(
1228 options: Partial<HeapSnapshotClassDiff> = {},
1229): HeapSnapshotClassDiff {
1230 return {
1231 index: options.index ?? 0,
1232 className: options.className ?? 'TestClass',
1233 addedCount: options.addedCount ?? 1,
1234 removedCount: options.removedCount ?? 0,
1235 countDelta: options.countDelta ?? 1,
1236 addedSize: options.addedSize ?? 10,
1237 removedSize: options.removedSize ?? 0,
1238 sizeDelta: options.sizeDelta ?? 10,
1239 };
1240}
1241
1242export function createMockClassDiffTotals(
1243 options: Partial<HeapSnapshotClassDiffTotals> = {},

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected