(
options: Partial<HeapSnapshotClassDiff> = {},
)
| 1225 | } |
| 1226 | |
| 1227 | export 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 | |
| 1242 | export function createMockClassDiffTotals( |
| 1243 | options: Partial<HeapSnapshotClassDiffTotals> = {}, |
no outgoing calls
no test coverage detected