()
| 40 | let stats: TerminalWriteStatsSnapshot = makeInitialStats() |
| 41 | |
| 42 | function makeInitialStats(): TerminalWriteStatsSnapshot { |
| 43 | return { |
| 44 | writeCalls: 0, |
| 45 | totalInputPatches: 0, |
| 46 | maxInputPatchCount: 0, |
| 47 | patchTypeCounts: { ...INITIAL_PATCH_TYPE_COUNTS }, |
| 48 | syncWrappedCalls: 0, |
| 49 | totalSerializedBytes: 0, |
| 50 | maxSerializedBytes: 0, |
| 51 | totalStdoutPatchBytes: 0, |
| 52 | maxStdoutPatchBytes: 0, |
| 53 | lastStdoutPatchBytes: 0, |
| 54 | lastStdoutPatchCount: 0, |
| 55 | totalSerializeDurationMs: 0, |
| 56 | maxSerializeDurationMs: 0, |
| 57 | lastSerializeDurationMs: 0, |
| 58 | lastSerializedBytes: 0, |
| 59 | lastInputPatchCount: 0, |
| 60 | lastUseSync: false, |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | export function resetTerminalWriteStatsForTesting(): void { |
| 65 | stats = makeInitialStats() |
no outgoing calls
no test coverage detected