(key: string)
| 38 | } |
| 39 | |
| 40 | removeItem(key: string) { |
| 41 | this.calls.remove += 1 |
| 42 | this.events.push(`remove:${key}`) |
| 43 | if (key.startsWith("opencode.throw")) throw new Error("storage remove failed") |
| 44 | this.values.delete(key) |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | const storage = new MemoryStorage() |
no test coverage detected