(
options: Partial<HeapSnapshotClassDiff> = {},
)
| 1171 | } |
| 1172 | |
| 1173 | export 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 | |
| 1188 | export function createMockClassDiffTotals( |
| 1189 | options: Partial<HeapSnapshotClassDiffTotals> = {}, |
no outgoing calls
no test coverage detected