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

Function createMockClassDiff

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

Source from the content-addressed store, hash-verified

1171}
1172
1173export function createMockClassDiff(
1174 options: Partial<HeapSnapshotClassDiff> = {},
1175): HeapSnapshotClassDiff {
1176 return {
1177 index: options.index ?? 0,
1178 className: options.className ?? 'TestClass',
1179 addedCount: options.addedCount ?? 1,
1180 removedCount: options.removedCount ?? 0,
1181 countDelta: options.countDelta ?? 1,
1182 addedSize: options.addedSize ?? 10,
1183 removedSize: options.removedSize ?? 0,
1184 sizeDelta: options.sizeDelta ?? 10,
1185 };
1186}
1187
1188export function createMockClassDiffTotals(
1189 options: Partial<HeapSnapshotClassDiffTotals> = {},

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected