(key: string, value: string)
| 30 | } |
| 31 | |
| 32 | setItem(key: string, value: string) { |
| 33 | this.calls.set += 1 |
| 34 | this.events.push(`set:${key}`) |
| 35 | if (key.startsWith("opencode.quota")) throw new DOMException("quota", "QuotaExceededError") |
| 36 | if (key.startsWith("opencode.throw")) throw new Error("storage set failed") |
| 37 | this.values.set(key, value) |
| 38 | } |
| 39 | |
| 40 | removeItem(key: string) { |
| 41 | this.calls.remove += 1 |
no test coverage detected