(probability = 0.2)
| 80 | |
| 81 | // For demo purposes - simulate random failures |
| 82 | simulateFailure(probability = 0.2): void { |
| 83 | if (Math.random() < probability) { |
| 84 | throw new Error(`Simulated network failure`) |
| 85 | } |
| 86 | }, |
| 87 | } |
| 88 | |
| 89 | // Add some initial data for demo |
nothing calls this directly
no outgoing calls
no test coverage detected